Class AbstractRequest

  • Direct Known Subclasses:
    CrudRequest, ItemConversionRequest

    public abstract class AbstractRequest
    extends java.lang.Object
    Encapsulates properties common to all OData requests.
    • Method Detail

      • getEntitySet

        public org.apache.olingo.odata2.api.edm.EdmEntitySet getEntitySet()
        Retrieves entity set associated with the request.
        Returns:
        an entity set associated with the request.
      • getEntityType

        public org.apache.olingo.odata2.api.edm.EdmEntityType getEntityType()
        Retrieves entity type associated with the request entity set. This is the same as calling getEntitySet().getEntityType() but this method does not throw EdmException
        Returns:
        an entity type associated with the request entity set.
      • getAcceptLocale

        public java.util.Locale getAcceptLocale()
        Retrieves data acceptLocale associated with the request.
        Returns:
        a "Accept-Language" header locale associated with the request.
      • getEntitySetReferencedByProperty

        public org.apache.olingo.odata2.api.edm.EdmEntitySet getEntitySetReferencedByProperty​(java.lang.String property)
                                                                                       throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • getPropertyTypeName

        protected java.lang.String getPropertyTypeName​(java.lang.String property)
                                                throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • getIntegrationObjectCode

        public java.lang.String getIntegrationObjectCode()
        Retrieves data integration object code value, for which this request is issued.
        Returns:
        a value of the integration object code, which also happens to be name of the OData service.
      • setEntitySet

        protected void setEntitySet​(org.apache.olingo.odata2.api.edm.EdmEntitySet set)
      • setEntityType

        protected void setEntityType​(org.apache.olingo.odata2.api.edm.EdmEntityType type)
      • setAcceptLocale

        protected void setAcceptLocale​(java.util.Locale loc)
      • setIntegrationObjectCode

        protected void setIntegrationObjectCode​(java.lang.String integrationObjectCode)