Class DefaultServiceNameExtractor
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.processor.DefaultServiceNameExtractor
-
- All Implemented Interfaces:
ServiceNameExtractor
public class DefaultServiceNameExtractor extends java.lang.Object implements ServiceNameExtractor
Default implementation of theServiceNameExtractor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELEMENT_DIVIDERstatic intMAX_ELEMENTS
-
Constructor Summary
Constructors Constructor Description DefaultServiceNameExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringextract(javax.servlet.http.HttpServletRequest httpServletRequest)Extracts the service name from the pathInfojava.lang.Stringextract(org.apache.olingo.odata2.api.processor.ODataContext context)Extracts the service name from the contextjava.lang.Stringextract(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
-
-
-
Field Detail
-
ELEMENT_DIVIDER
public static final java.lang.String ELEMENT_DIVIDER
- See Also:
- Constant Field Values
-
MAX_ELEMENTS
public static final int MAX_ELEMENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
extract
public java.lang.String extract(org.apache.olingo.odata2.api.processor.ODataContext context)
Description copied from interface:ServiceNameExtractorExtracts the service name from the context- Specified by:
extractin interfaceServiceNameExtractor- 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:ServiceNameExtractorExtracts the service name from the pathInfo- Specified by:
extractin interfaceServiceNameExtractor- Parameters:
httpServletRequest-HttpServletRequestwith the information needed.- Returns:
- a
StringThe 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:ServiceNameExtractorExtracts the service name from the context and supplies the integration key value, if it's known- Specified by:
extractin interfaceServiceNameExtractor- Parameters:
context- Context containing the URL with the service nameintegrationKey- 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.
-
-