Package com.github.ambry.rest
Interface RestRequestResponseHandlerFactory
-
public interface RestRequestResponseHandlerFactory
RestRequestResponseHandlerFactory is a factory to generate all the supporting cast required to instantiateRestRequestHandler
andRestResponseHandler
. Usually called with the canonical class name and as such might have to support appropriate (multiple) constructors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestRequestHandler
getRestRequestHandler()
Returns an instance of theRestRequestHandler
that the factory generates.RestResponseHandler
getRestResponseHandler()
Returns an instance of theRestResponseHandler
that the factory generates.
-
-
-
Method Detail
-
getRestRequestHandler
RestRequestHandler getRestRequestHandler() throws java.lang.InstantiationException
Returns an instance of theRestRequestHandler
that the factory generates.- Returns:
- an instance of
RestRequestHandler
generated by this factory. - Throws:
java.lang.InstantiationException
- if theRestRequestHandler
instance cannot be created.
-
getRestResponseHandler
RestResponseHandler getRestResponseHandler() throws java.lang.InstantiationException
Returns an instance of theRestResponseHandler
that the factory generates.- Returns:
- an instance of
RestResponseHandler
generated by this factory. - Throws:
java.lang.InstantiationException
- if theRestResponseHandler
instance cannot be created.
-
-