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
Fields -
Constructor Summary
Constructors -
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 RestServiceDispatchergetMethodConfig(String matchingPattern, String method) voidregisterServiceClient(RestListener listener, String uriPattern, String method, String etagSessionKey, String contentTypeSessionKey, boolean validateEtag) voidunregisterServiceClient(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- theStringwith the request/input- Returns:
- String with the result of processing the
requestthrough theserviceName - Throws:
ListenerException
-
registerServiceClient
public void registerServiceClient(RestListener listener, String uriPattern, String method, String etagSessionKey, String contentTypeSessionKey, boolean validateEtag) -
unregisterServiceClient
-
getUriPatterns
-