Interface SharedEndpointManagement


  • public interface SharedEndpointManagement
    Management 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
    • Method Detail

      • deployInternalEndpointServlet

        void deployInternalEndpointServlet​(java.lang.String contextPath,
                                           org.eclipse.jetty.servlet.ServletHolder servlet,
                                           boolean mapVaadinResource)
                                    throws pl.edu.icm.unity.exceptions.EngineException
        Deploys 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.EngineException
        Deploys 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