voldemort.server.rest
Class RestServerDeleteRequestValidator

java.lang.Object
  extended by voldemort.server.rest.RestServerRequestValidator
      extended by voldemort.server.rest.RestServerDeleteRequestValidator

public class RestServerDeleteRequestValidator
extends RestServerRequestValidator

This class is used to parse an incoming delete request. Parses and validates the REST Request and constructs a CompositeVoldemortRequestObject. Also handles exceptions specific to delete operation.


Field Summary
 
Fields inherited from class voldemort.server.rest.RestServerRequestValidator
logger, messageEvent, parsedKeys, parsedOperationType, parsedRequestOriginTimeInMs, parsedRoutingType, parsedTimeoutInMs, parsedValue, parsedVectorClock, request, requestObject, storeName, storeRepository
 
Constructor Summary
RestServerDeleteRequestValidator(org.jboss.netty.handler.codec.http.HttpRequest request, org.jboss.netty.channel.MessageEvent messageEvent, StoreRepository storeRepository)
           
 
Method Summary
 CompositeVoldemortRequest<ByteArray,byte[]> constructCompositeVoldemortRequestObject()
           
 boolean parseAndValidateRequest()
          Validations specific to DELETE
 
Methods inherited from class voldemort.server.rest.RestServerRequestValidator
getParsedRoutingType, getStoreName, hasKey, hasRoutingCodeHeader, hasTimeOutHeader, hasTimeStampHeader, hasVectorClock, isStoreValid, parseKeys, parseStoreName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestServerDeleteRequestValidator

public RestServerDeleteRequestValidator(org.jboss.netty.handler.codec.http.HttpRequest request,
                                        org.jboss.netty.channel.MessageEvent messageEvent,
                                        StoreRepository storeRepository)
Method Detail

constructCompositeVoldemortRequestObject

public CompositeVoldemortRequest<ByteArray,byte[]> constructCompositeVoldemortRequestObject()
Specified by:
constructCompositeVoldemortRequestObject in class RestServerRequestValidator

parseAndValidateRequest

public boolean parseAndValidateRequest()
Validations specific to DELETE

Overrides:
parseAndValidateRequest in class RestServerRequestValidator
Returns:
true if request is valid else false


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu