Interface SilverpeasWebResource

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String BASE_PATH  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      static String getAbsoluteBasePath()
      Gets the absolute base path of all the web resources relative to the root path of the Silverpeas URL by taking into account the settings on the application URL.
      static String getBasePath()
      Gets the base path of all the web resources relative to the root path of the Silverpeas URL by taking into account the settings on the application URL.
      static javax.ws.rs.core.UriBuilder getBasePathBuilder()
      Gets the base path of all the web resources relative to the root path of the Silverpeas URL in the form of a UriBuilder .
      static javax.ws.rs.core.UriBuilder getBaseUriBuilder​(javax.servlet.http.HttpServletRequest request)
      Gets the base URI of all the web resources.
      String getComponentId()
      Gets the identifier of the component instance to which the requested resource belongs to.
      javax.servlet.http.HttpServletRequest getHttpRequest()
      Gets the current HTTP request received by this Web resource.
      WebResourceUri getUri()
      Gets the URI targeted by the current HTTP request in the form of a WebResourceUri.
    • Method Detail

      • getBasePath

        static String getBasePath()
        Gets the base path of all the web resources relative to the root path of the Silverpeas URL by taking into account the settings on the application URL. All the web resources are defined from this base URI.
        Returns:
        the base path from which all the web resources are defined as a string.
      • getAbsoluteBasePath

        static String getAbsoluteBasePath()
        Gets the absolute base path of all the web resources relative to the root path of the Silverpeas URL by taking into account the settings on the application URL. All the web resources are defined from this absolute base URI.
        Returns:
        the absolute base path from which all the web resources are defined as a string.
      • getBasePathBuilder

        static javax.ws.rs.core.UriBuilder getBasePathBuilder()
        Gets the base path of all the web resources relative to the root path of the Silverpeas URL in the form of a UriBuilder . All the web resources are defined from this base URI.
        Returns:
        the UriBuilder initialized with the base path from which all the web resources are defined.
      • getBaseUriBuilder

        static javax.ws.rs.core.UriBuilder getBaseUriBuilder​(javax.servlet.http.HttpServletRequest request)
        Gets the base URI of all the web resources. All the web resources are defined from this base URI. The URI includes everything preceding the path (host, port, etc). The URI in its full form is dedicated to be used to expose the resource out of the Web context of Silverpeas.
        Parameters:
        request - the HTTP servlet request that is received from the Web client and from which the base URI in its full form will be computed.
        Returns:
        the full base URI as an UriBuilder.
      • getHttpRequest

        javax.servlet.http.HttpServletRequest getHttpRequest()
        Gets the current HTTP request received by this Web resource.
        Returns:
        the current HTTP request.
      • getComponentId

        String getComponentId()
        Gets the identifier of the component instance to which the requested resource belongs to.
        Returns:
        the identifier of the Silverpeas component instance.