Interface IRequestHandler
-
- All Known Implementing Classes:
RequestHandler
public interface IRequestHandlerInterface for a request handler that can be used to process requests in a user defined way. Register it usingCore.addRequestHandler(String, RequestHandler)in the after startup microflow.- Since:
- 9.0.1
- See Also:
for an abstract base class that lets you access information.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPPLICATION_OCTET_STREAM_TYPEstatic java.lang.StringCSRF_TOKEN_HEADERstatic java.lang.StringCSRF_TOKEN_PARAMETERstatic java.lang.StringEXPIRES
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddoProcessRequest(IMxRuntimeRequest request, IMxRuntimeResponse response, java.lang.String path)Method that is called when a new request is to be processed.
-
-
-
Field Detail
-
CSRF_TOKEN_HEADER
static final java.lang.String CSRF_TOKEN_HEADER
- See Also:
- Constant Field Values
-
CSRF_TOKEN_PARAMETER
static final java.lang.String CSRF_TOKEN_PARAMETER
- See Also:
- Constant Field Values
-
EXPIRES
static final java.lang.String EXPIRES
- See Also:
- Constant Field Values
-
APPLICATION_OCTET_STREAM_TYPE
static final java.lang.String APPLICATION_OCTET_STREAM_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doProcessRequest
void doProcessRequest(IMxRuntimeRequest request, IMxRuntimeResponse response, java.lang.String path) throws java.lang.Exception
Method that is called when a new request is to be processed.- Parameters:
request- the request to handlerresponse- the response to update for the requestpath- the request path after the handler type (e.g. for "/xas/commit" the handler type is "xas/" and the path is "commit")- Throws:
java.lang.Exception
-
-