public abstract class ServiceRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.olingo.server.api.serializer.CustomContentTypeSupport |
customContentType |
protected org.apache.olingo.server.api.OData |
odata |
protected org.apache.olingo.server.api.ODataRequest |
request |
protected org.apache.olingo.server.api.ServiceMetadata |
serviceMetadata |
protected org.apache.olingo.server.api.uri.UriInfo |
uriInfo |
| Constructor and Description |
|---|
ServiceRequest(org.apache.olingo.server.api.OData odata,
org.apache.olingo.server.api.ServiceMetadata serviceMetadata) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowedMethod() |
abstract void |
execute(ServiceHandler handler,
org.apache.olingo.server.api.ODataResponse response) |
org.apache.olingo.server.api.serializer.CustomContentTypeSupport |
getCustomContentTypeSupport() |
String |
getETag() |
String |
getHeader(String key) |
org.apache.olingo.server.api.OData |
getOdata() |
org.apache.olingo.server.api.ODataRequest |
getODataRequest() |
String |
getPreference(String key) |
Map<String,String> |
getPreferences() |
String |
getQueryParameter(String param) |
org.apache.olingo.commons.api.format.ContentType |
getRequestContentType() |
abstract org.apache.olingo.commons.api.format.ContentType |
getResponseContentType() |
ReturnRepresentation |
getReturnRepresentation() |
org.apache.olingo.server.api.serializer.ODataSerializer |
getSerializer() |
<T> T |
getSerializerOptions(Class<T> serilizerOptions,
org.apache.olingo.commons.api.data.ContextURL contextUrl,
boolean references) |
org.apache.olingo.server.api.ServiceMetadata |
getServiceMetaData() |
org.apache.olingo.server.api.uri.UriInfo |
getUriInfo() |
protected boolean |
isDELETE() |
protected boolean |
isGET() |
protected boolean |
isPATCH() |
protected boolean |
isPOST() |
protected boolean |
isPUT() |
void |
methodNotAllowed() |
void |
notImplemented() |
DataRequest |
parseLink(URI uri) |
void |
setCustomContentTypeSupport(org.apache.olingo.server.api.serializer.CustomContentTypeSupport support) |
protected void |
setODataRequest(org.apache.olingo.server.api.ODataRequest request) |
protected void |
setUriInfo(org.apache.olingo.server.api.uri.UriInfo uriInfo) |
protected org.apache.olingo.server.api.OData odata
protected org.apache.olingo.server.api.uri.UriInfo uriInfo
protected org.apache.olingo.server.api.ServiceMetadata serviceMetadata
protected org.apache.olingo.server.api.serializer.CustomContentTypeSupport customContentType
protected org.apache.olingo.server.api.ODataRequest request
public ServiceRequest(org.apache.olingo.server.api.OData odata,
org.apache.olingo.server.api.ServiceMetadata serviceMetadata)
public org.apache.olingo.server.api.OData getOdata()
public org.apache.olingo.server.api.ServiceMetadata getServiceMetaData()
public org.apache.olingo.server.api.uri.UriInfo getUriInfo()
protected void setUriInfo(org.apache.olingo.server.api.uri.UriInfo uriInfo)
public boolean allowedMethod()
public org.apache.olingo.server.api.serializer.CustomContentTypeSupport getCustomContentTypeSupport()
public void setCustomContentTypeSupport(org.apache.olingo.server.api.serializer.CustomContentTypeSupport support)
public org.apache.olingo.server.api.ODataRequest getODataRequest()
protected void setODataRequest(org.apache.olingo.server.api.ODataRequest request)
public org.apache.olingo.commons.api.format.ContentType getRequestContentType()
public abstract void execute(ServiceHandler handler, org.apache.olingo.server.api.ODataResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionpublic abstract org.apache.olingo.commons.api.format.ContentType getResponseContentType()
throws org.apache.olingo.server.core.ContentNegotiatorException
org.apache.olingo.server.core.ContentNegotiatorExceptionpublic void methodNotAllowed()
throws org.apache.olingo.server.core.ODataHandlerException
org.apache.olingo.server.core.ODataHandlerExceptionpublic void notImplemented()
throws org.apache.olingo.server.core.ODataHandlerException
org.apache.olingo.server.core.ODataHandlerExceptionprotected boolean isGET()
protected boolean isPUT()
protected boolean isDELETE()
protected boolean isPATCH()
protected boolean isPOST()
public <T> T getSerializerOptions(Class<T> serilizerOptions, org.apache.olingo.commons.api.data.ContextURL contextUrl, boolean references) throws org.apache.olingo.server.core.ContentNegotiatorException
org.apache.olingo.server.core.ContentNegotiatorExceptionpublic ReturnRepresentation getReturnRepresentation()
public String getETag()
public org.apache.olingo.server.api.serializer.ODataSerializer getSerializer()
throws org.apache.olingo.server.core.ContentNegotiatorException,
org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.core.ContentNegotiatorExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionpublic DataRequest parseLink(URI uri) throws org.apache.olingo.server.core.uri.parser.UriParserException, URISyntaxException
org.apache.olingo.server.core.uri.parser.UriParserExceptionURISyntaxExceptionCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.