Interface ServiceNameExtractor
-
- All Known Implementing Classes:
DefaultServiceNameExtractor
public interface ServiceNameExtractorA service to extract the service name from theODataContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated 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)Deprecated, for removal: This API element is subject to removal in a future version.Since 1905.
-
-
-
Method Detail
-
extract
java.lang.String extract(org.apache.olingo.odata2.api.processor.ODataContext context)
Extracts the service name from the context- 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
java.lang.String extract(javax.servlet.http.HttpServletRequest httpServletRequest)
Extracts the service name from the pathInfo- Parameters:
httpServletRequest-HttpServletRequestwith the information needed.- Returns:
- a
StringThe service name, which is also code of the integration object presented by the endpoint.
-
extract
@Deprecated(since="1905", forRemoval=true) java.lang.String extract(org.apache.olingo.odata2.api.processor.ODataContext context, java.lang.String integrationKey)Deprecated, for removal: This API element is subject to removal in a future version.Since 1905. Useextract(ODataContext)Extracts the service name from the context and supplies the integration key value, if it's known- 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.
-
-