public class RestServiceDispatcher extends Object
ServiceClient
interface.Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
protected org.apache.logging.log4j.Logger |
secLog |
Constructor and Description |
---|
RestServiceDispatcher() |
Modifier and Type | Method and Description |
---|---|
Message |
dispatchRequest(String restPath,
String uri,
javax.servlet.http.HttpServletRequest httpServletRequest,
String contentType,
String request,
PipeLineSession context,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.ServletContext servletContext)
Dispatch a request.
|
String |
findMatchingPattern(String uri) |
List<String> |
getAvailableMethods(String matchingPattern) |
static RestServiceDispatcher |
getInstance() |
Map<String,Object> |
getMethodConfig(String matchingPattern,
String method) |
Set<String> |
getUriPatterns() |
void |
registerServiceClient(ServiceClient listener,
String uriPattern,
String method,
String etagSessionKey,
String contentTypeSessionKey,
boolean validateEtag) |
void |
unregisterServiceClient(String uriPattern,
String method) |
protected org.apache.logging.log4j.Logger log
protected org.apache.logging.log4j.Logger secLog
public static RestServiceDispatcher getInstance()
public Message dispatchRequest(String restPath, String uri, javax.servlet.http.HttpServletRequest httpServletRequest, String contentType, String request, PipeLineSession context, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.ServletContext servletContext) throws ListenerException
uri
- the name of the IReceiver objectrequest
- the String
with the request/inputrequest
through the serviceName
ListenerException
public void registerServiceClient(ServiceClient listener, String uriPattern, String method, String etagSessionKey, String contentTypeSessionKey, boolean validateEtag)
Copyright © 2023 Frank!Framework. All rights reserved.