Package de.xima.fc.security.endpoint
Class WebEndpointManager
java.lang.Object
de.xima.fc.security.endpoint.WebEndpointManager
Manager for working with formcycle web endpoints.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.apache.commons.lang3.tuple.Pair<String,Collection<IPluginMenuEntry>>> static Set<IRewriteUriResolver>Returns all registered web endpoints with rewrite uri resolvers.static IWebEndpointgetWebEndpoint(javax.servlet.http.HttpServletRequest req) Get the web endpoint for the given requeststatic voidregisterPluginMenuEntries(String contextName, IPluginMenuEntries menuEntries) static booleanregisterWebEndpoint(IWebEndpoint endpoint) Registers a web endpoint.static voidunregisterPluginMenuEntries(IPluginMenuEntries menuEntries) static booleanunregisterWebEndpoint(IWebEndpoint endpoint) Unregisters a custom web endpoint.
-
Method Details
-
registerWebEndpoint
Registers a web endpoint.- Parameters:
endpoint- to be registered.- Returns:
trueif the web endpoint has been registered andfalseif the web endpoint could not be registered because it has already been registered.
-
unregisterWebEndpoint
Unregisters a custom web endpoint.- Parameters:
endpoint- Endpoint to be unregistered.- Returns:
trueif the web endpoint has been unregistered andfalseif the web endpoint could not be unregistered because there was no registered web endpoint to be unregistered.
-
registerPluginMenuEntries
-
unregisterPluginMenuEntries
-
getRegisteredPluginMenuEntries
public static List<org.apache.commons.lang3.tuple.Pair<String,Collection<IPluginMenuEntry>>> getRegisteredPluginMenuEntries(Mandant client) -
getWebEndpoint
Get the web endpoint for the given request- Parameters:
req- HTTP request from which the web endpoint is extracted.- Returns:
- The web endpoint requested by the given HTTP request.
-
getRewriteUriResolvers
Returns all registered web endpoints with rewrite uri resolvers. Web endpoints with rewrite uri resolvers perform request rewrites using theRewriteFilter.- Returns:
- all registered web endpoints with rewrite uri resolvers.
-