Package org.exoplatform.services.rest
Interface RequestHandler
- All Known Implementing Classes:
RequestHandlerImpl
public interface RequestHandler
Contract of this component is process all requests, initialization and
control main components of JAX-RS implementation.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(GenericContainerRequest request, GenericContainerResponse response) Handle the HTTP request by dispatching request to appropriate resource.
-
Field Details
-
WS_RS_TMP_DIR
Temporary directory attribute name.- See Also:
-
WS_RS_BUFFER_SIZE
Max buffer size attribute name. Entities that has size greater then specified will be stored in temporary directory on file system during entity processing.- See Also:
-
WS_RS_BUFFER_SIZE_VALUE
static final int WS_RS_BUFFER_SIZE_VALUEMax buffer size attribute value. SeeWS_RS_BUFFER_SIZE.- See Also:
-
-
Method Details
-
handleRequest
void handleRequest(GenericContainerRequest request, GenericContainerResponse response) throws Exception Handle the HTTP request by dispatching request to appropriate resource. If no one appropriate resource found then error response will be produced.- Parameters:
request- HTTP requestresponse- HTTP response- Throws:
Exception- if any error occurs
-