Package org.frankframework.http
Class RestServiceDispatcher
java.lang.Object
org.frankframework.http.RestServiceDispatcher
Singleton class that knows about the RestListeners that are active.
This class is to be used as a facade for different services that implement the
This class is exposed as a webservice, to be able to provide a single point of entry to all adapters that have a ServiceListener as a IReceiver.
This class is to be used as a facade for different services that implement the
ServiceClient
interface.This class is exposed as a webservice, to be able to provide a single point of entry to all adapters that have a ServiceListener as a IReceiver.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondispatchRequest
(String restPath, String uri, jakarta.servlet.http.HttpServletRequest httpServletRequest, String contentType, String request, PipeLineSession context, jakarta.servlet.http.HttpServletResponse httpServletResponse) Dispatch a request.getAvailableMethods
(String matchingPattern) static RestServiceDispatcher
getMethodConfig
(String matchingPattern, String method) void
registerServiceClient
(ServiceClient listener, String uriPattern, String method, String etagSessionKey, String contentTypeSessionKey, boolean validateEtag) void
unregisterServiceClient
(String uriPattern, String method)
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log -
secLog
protected org.apache.logging.log4j.Logger secLog
-
-
Constructor Details
-
RestServiceDispatcher
public RestServiceDispatcher()
-
-
Method Details
-
getInstance
-
findMatchingPattern
-
getMethodConfig
-
getAvailableMethods
-
dispatchRequest
public Message dispatchRequest(String restPath, String uri, jakarta.servlet.http.HttpServletRequest httpServletRequest, String contentType, String request, PipeLineSession context, jakarta.servlet.http.HttpServletResponse httpServletResponse) throws ListenerException Dispatch a request.- Parameters:
uri
- the name of the IReceiver objectrequest
- theString
with the request/input- Returns:
- String with the result of processing the
request
through theserviceName
- Throws:
ListenerException
-
registerServiceClient
public void registerServiceClient(ServiceClient listener, String uriPattern, String method, String etagSessionKey, String contentTypeSessionKey, boolean validateEtag) -
unregisterServiceClient
-
getUriPatterns
-