org.cruxframework.crux.core.server.rest.core.dispatch
Class RequestPreprocessor

java.lang.Object
  extended by org.cruxframework.crux.core.server.rest.core.dispatch.RequestPreprocessor

public abstract class RequestPreprocessor
extends Object

Author:
Thiago da Rosa de Bustamante

Constructor Summary
RequestPreprocessor()
           
 
Method Summary
protected  boolean appliesTo(Method targetMethod)
          To be overriden.
protected  boolean appliesTo(RequestProcessorContext context)
          To be overriden.
 RequestPreprocessor createProcessor(RequestProcessorContext context)
           
abstract  void preprocess(HttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestPreprocessor

public RequestPreprocessor()
Method Detail

appliesTo

protected boolean appliesTo(RequestProcessorContext context)
To be overriden.

Parameters:
context -
Returns:

appliesTo

protected boolean appliesTo(Method targetMethod)
To be overriden.

Parameters:
context -
Returns:

preprocess

public abstract void preprocess(HttpRequest request)
                         throws RestFailure
Parameters:
request -
Throws:
RestFailure

createProcessor

public RequestPreprocessor createProcessor(RequestProcessorContext context)
                                    throws RequestProcessorException
Parameters:
context -
Returns:
Throws:
RequestProcessorException


Copyright © 2015. All rights reserved.