Interface SharedEndpointManagement
-
public interface SharedEndpointManagementManagement of the single, shared, internal Unity endpoint, which is not under administrator's control. It is intended for a cross-cutting functionality, where Unity has to listen for some requests but on an path which is not endpoint specific (e.g. for SAML responses, where return address must be the same for all authenticators).- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTEXT_PATH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeployInternalEndpointFilter(java.lang.String contextPath, org.eclipse.jetty.servlet.FilterHolder filter)Deploys the given filter in the internal, shared endpoint.voiddeployInternalEndpointServlet(java.lang.String contextPath, org.eclipse.jetty.servlet.ServletHolder servlet, boolean mapVaadinResource)Deploys the given servlet in the internal, shared endpoint.java.lang.StringgetBaseContextPath()java.lang.StringgetServerAddress()java.lang.StringgetServletUrl(java.lang.String servletPath)
-
-
-
Field Detail
-
CONTEXT_PATH
static final java.lang.String CONTEXT_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
deployInternalEndpointServlet
void deployInternalEndpointServlet(java.lang.String contextPath, org.eclipse.jetty.servlet.ServletHolder servlet, boolean mapVaadinResource) throws pl.edu.icm.unity.exceptions.EngineExceptionDeploys the given servlet in the internal, shared endpoint.- Parameters:
contextPath- path to the deployed servlet, will be the next element after the common context of the whole internal endpoint.servlet- the servlet to deploy- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
getBaseContextPath
java.lang.String getBaseContextPath()
- Returns:
- the first element of the servlet's path, with a leading '/' and no trailing '/'.
-
getServletUrl
java.lang.String getServletUrl(java.lang.String servletPath)
- Parameters:
servletPath- last path element of the servlet, without context prefix.- Returns:
- URL in string form, including the server's address, shared context address and the servlet's address.
-
deployInternalEndpointFilter
void deployInternalEndpointFilter(java.lang.String contextPath, org.eclipse.jetty.servlet.FilterHolder filter) throws pl.edu.icm.unity.exceptions.EngineExceptionDeploys the given filter in the internal, shared endpoint.- Parameters:
contextPath-filter-- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
getServerAddress
java.lang.String getServerAddress()
- Returns:
- advertised address of the server
-
-