Class DefaultServiceNameExtractor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String extract​(javax.servlet.http.HttpServletRequest httpServletRequest)
      Extracts the service name from the pathInfo
      java.lang.String extract​(org.apache.olingo.odata2.api.processor.ODataContext context)
      Extracts the service name from the context
      java.lang.String extract​(org.apache.olingo.odata2.api.processor.ODataContext context, java.lang.String integrationKey)
      Extracts the service name from the context and supplies the integration key value, if it's known
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultServiceNameExtractor

        public DefaultServiceNameExtractor()
    • Method Detail

      • extract

        public java.lang.String extract​(org.apache.olingo.odata2.api.processor.ODataContext context)
        Description copied from interface: ServiceNameExtractor
        Extracts the service name from the context
        Specified by:
        extract in interface ServiceNameExtractor
        Parameters:
        context - Context containing the URL with the service name
        Returns:
        The service name, which is also code of the integration object presented by the endpoint.
      • extract

        public java.lang.String extract​(javax.servlet.http.HttpServletRequest httpServletRequest)
        Description copied from interface: ServiceNameExtractor
        Extracts the service name from the pathInfo
        Specified by:
        extract in interface ServiceNameExtractor
        Parameters:
        httpServletRequest - HttpServletRequest with the information needed.
        Returns:
        a String The service name, which is also code of the integration object presented by the endpoint.
      • extract

        public java.lang.String extract​(org.apache.olingo.odata2.api.processor.ODataContext context,
                                        java.lang.String integrationKey)
        Description copied from interface: ServiceNameExtractor
        Extracts the service name from the context and supplies the integration key value, if it's known
        Specified by:
        extract in interface ServiceNameExtractor
        Parameters:
        context - Context containing the URL with the service name
        integrationKey - The integration key to be used as context for logging, exception throwing, etc.
        Returns:
        The service name, which is also code of the integration object presented by the endpoint.