Class ODataRootLocator


  • @Path("/")
    public class ODataRootLocator
    extends Object
    Default OData root locator responsible to handle the whole path and delegate all calls to a sub locator:

    /{odata path} e.g. http://host:port/webapp/odata.svc/$metadata
    All path segments defined by a servlet mapping belong to the odata uri.

    This behavior can be changed:

    /{custom path}{odata path} e.g. http://host:port/webapp/bmw/odata.svc/$metadata
    The first segment defined by a servlet mapping belong to customer context and the following segments are OData specific.

    • Constructor Detail

      • ODataRootLocator

        public ODataRootLocator()
    • Method Detail

      • getPathSplit

        public int getPathSplit()
      • createServiceFactoryFromContext

        public static ODataServiceFactory createServiceFactoryFromContext​(javax.ws.rs.core.Application app,
                                                                          javax.servlet.http.HttpServletRequest servletRequest,
                                                                          javax.servlet.ServletConfig servletConfig)