Class DefaultServiceNameExtractor

java.lang.Object
de.hybris.platform.odata2services.odata.processor.DefaultServiceNameExtractor
All Implemented Interfaces:
ServiceNameExtractor

public class DefaultServiceNameExtractor extends Object implements ServiceNameExtractor
Default implementation of the ServiceNameExtractor
  • Field Details

  • Constructor Details

    • DefaultServiceNameExtractor

      public DefaultServiceNameExtractor()
  • Method Details

    • extract

      public 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 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.