Class AbstractRequest
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.persistence.AbstractRequest
-
- Direct Known Subclasses:
CrudRequest,ItemConversionRequest
public abstract class AbstractRequest extends java.lang.ObjectEncapsulates properties common to all OData requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractRequest.AbstractRequestBuilder<T extends AbstractRequest.AbstractRequestBuilder,R extends AbstractRequest>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.LocalegetAcceptLocale()Retrieves data acceptLocale associated with the request.org.apache.olingo.odata2.api.edm.EdmEntitySetgetEntitySet()Retrieves entity set associated with the request.org.apache.olingo.odata2.api.edm.EdmEntitySetgetEntitySetReferencedByProperty(java.lang.String property)org.apache.olingo.odata2.api.edm.EdmEntityTypegetEntityType()Retrieves entity type associated with the request entity set.java.lang.StringgetIntegrationObjectCode()Retrieves data integration object code value, for which this request is issued.protected java.lang.StringgetPropertyTypeName(java.lang.String property)protected voidsetAcceptLocale(java.util.Locale loc)protected voidsetEntitySet(org.apache.olingo.odata2.api.edm.EdmEntitySet set)protected voidsetEntityType(org.apache.olingo.odata2.api.edm.EdmEntityType type)protected voidsetIntegrationObjectCode(java.lang.String integrationObjectCode)
-
-
-
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 callinggetEntitySet().getEntityType()but this method does not throwEdmException- 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)
-
-