Class RequestDispatcher
java.lang.Object
org.exoplatform.services.rest.impl.RequestDispatcher
Lookup resource which can serve request.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MethodInvokerFactoryprotected final ProvidersRegistryprotected final ResourceBinderSeeResourceBinder. -
Constructor Summary
ConstructorsConstructorDescriptionRequestDispatcher(ResourceBinder resourceBinder) Deprecated.RequestDispatcher(ResourceBinder resourceBinder, MethodInvokerFactory invokerFactory) Deprecated.RequestDispatcher(ResourceBinder resourceBinder, ProvidersRegistry providers) RequestDispatcher(ResourceBinder resourceBinder, ProvidersRegistry providersRegistry, MethodInvokerFactory invokerFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(GenericContainerRequest request, GenericContainerResponse response) DispatchContainerRequestto resource which can serve request.protected ObjectFactory<AbstractResourceDescriptor> getRootResourse(List<String> parameterValues, String requestPath) Get root resource.
-
Field Details
-
resourceBinder
SeeResourceBinder. -
invokerFactory
-
providersRegistry
-
-
Constructor Details
-
RequestDispatcher
public RequestDispatcher(ResourceBinder resourceBinder, ProvidersRegistry providersRegistry, MethodInvokerFactory invokerFactory) -
RequestDispatcher
-
RequestDispatcher
@Deprecated public RequestDispatcher(ResourceBinder resourceBinder, MethodInvokerFactory invokerFactory) Deprecated. -
RequestDispatcher
Deprecated.
-
-
Method Details
-
dispatch
DispatchContainerRequestto resource which can serve request.- Parameters:
request- SeeGenericContainerRequestresponse- SeeGenericContainerResponse
-
getRootResourse
protected ObjectFactory<AbstractResourceDescriptor> getRootResourse(List<String> parameterValues, String requestPath) Get root resource.- Parameters:
parameterValues- is taken from contextrequestPath- is taken from context- Returns:
- root resource
- Throws:
javax.ws.rs.WebApplicationException- if there is no matched root resources. Exception with prepared error response with 'Not Found' status
-