Class DefaultODataFacade

  • All Implemented Interfaces:
    ODataFacade

    public class DefaultODataFacade
    extends java.lang.Object
    implements ODataFacade
    A default implementation of the ODataFacade. This implementation delegates to the odata classes to derive the ODataResponse for the request.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected DefaultIntegrationODataRequestHandler createRequestHandler​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext, org.apache.olingo.odata2.api.ODataService oDataService)  
      protected EdmxProviderValidator getEdmxProviderValidator()  
      org.apache.olingo.odata2.api.processor.ODataResponse handleGetEntity​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
      Obtains ODataResponse with a stream that contains entity data model.
      org.apache.olingo.odata2.api.processor.ODataResponse handleGetSchema​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
      Obtains ODataResponse with a stream that contains odata EDMX schema specified by the oDataContext.
      org.apache.olingo.odata2.api.processor.ODataResponse handlePost​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
      Creates an integration object item based on request.
      org.apache.olingo.odata2.api.processor.ODataResponse handleRequest​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
      Handles create, read, update or delete requests on an integration object item.
      protected org.apache.olingo.odata2.api.processor.ODataRequest odataRequest​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)  
      void setEdmxProviderValidator​(EdmxProviderValidator edmxProviderValidator)  
      void setIntegrationObjectMetadataPermissionService​(IntegrationObjectMetadataPermissionService integrationObjectMetadataPermissionService)  
      void setODataServiceFactory​(org.apache.olingo.odata2.api.ODataServiceFactory oDataServiceFactory)  
      protected org.apache.olingo.odata2.api.processor.ODataResponse validatedResponse​(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse)  
      • Methods inherited from class java.lang.Object

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

      • DefaultODataFacade

        public DefaultODataFacade()
    • Method Detail

      • handleGetSchema

        public org.apache.olingo.odata2.api.processor.ODataResponse handleGetSchema​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
        Description copied from interface: ODataFacade
        Obtains ODataResponse with a stream that contains odata EDMX schema specified by the oDataContext.
        Specified by:
        handleGetSchema in interface ODataFacade
        Parameters:
        oDataContext - contains information about what schema should be retrieved.
        Returns:
        requested ODataResponse with a stream that contains EDMX schema
      • handleGetEntity

        public org.apache.olingo.odata2.api.processor.ODataResponse handleGetEntity​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
        Description copied from interface: ODataFacade
        Obtains ODataResponse with a stream that contains entity data model.
        Specified by:
        handleGetEntity in interface ODataFacade
        Parameters:
        oDataContext - contains information about what entity should be retrieved.
        Returns:
        requested ODataResponse with a stream that contains entity data.
      • handlePost

        public org.apache.olingo.odata2.api.processor.ODataResponse handlePost​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
        Description copied from interface: ODataFacade
        Creates an integration object item based on request.
        Specified by:
        handlePost in interface ODataFacade
        Parameters:
        oDataContext - contains information about what item should be created
        Returns:
        response with information about the newly created item
      • handleRequest

        public org.apache.olingo.odata2.api.processor.ODataResponse handleRequest​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
        Description copied from interface: ODataFacade
        Handles create, read, update or delete requests on an integration object item.
        Specified by:
        handleRequest in interface ODataFacade
        Parameters:
        oDataContext - contains the information about the item
        Returns:
        response with information about the item
      • odataRequest

        protected org.apache.olingo.odata2.api.processor.ODataRequest odataRequest​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
      • createRequestHandler

        protected DefaultIntegrationODataRequestHandler createRequestHandler​(org.apache.olingo.odata2.api.processor.ODataContext oDataContext,
                                                                             org.apache.olingo.odata2.api.ODataService oDataService)
      • validatedResponse

        protected org.apache.olingo.odata2.api.processor.ODataResponse validatedResponse​(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse)
      • setODataServiceFactory

        public void setODataServiceFactory​(org.apache.olingo.odata2.api.ODataServiceFactory oDataServiceFactory)
      • setEdmxProviderValidator

        public void setEdmxProviderValidator​(EdmxProviderValidator edmxProviderValidator)