Class AbstractWebEndpoint

    • Method Detail

      • getBaseUrl

        public java.net.URL getBaseUrl()
        Returns:
        the URL where the server listens to. It has no path element.
      • getServletUrl

        public java.lang.String getServletUrl​(java.lang.String servletPath)
        Parameters:
        servletPath - path of the servlet exposing the endpoint, Only the servlet's path, without context prefix.
        Returns:
        URL in string form, including the servers address, context address and the servlet's address.
      • start

        public final void start()
                         throws pl.edu.icm.unity.exceptions.EngineException
        Description copied from interface: EndpointInstance
        Starts the endpoint. After this method returns the endpoint should be made available for usage.
        Specified by:
        start in interface EndpointInstance
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • startOverridable

        protected void startOverridable()
      • destroy

        public final void destroy()
                           throws pl.edu.icm.unity.exceptions.EngineException
        Description copied from interface: EndpointInstance
        Stops the endpoint.
        Specified by:
        destroy in interface EndpointInstance
        Overrides:
        destroy in class AbstractEndpoint
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • destroyOverridable

        protected void destroyOverridable()