public abstract class GenericRequest extends Object
| Constructor and Description |
|---|
GenericRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHeader(String name)
Returns true if the header is present in the request, otherwise, it returns false.
|
EntityMetadata |
getEntityMetadata()
Returns the metadata of the requested entity.
|
String |
getHeader(String name)
Returns the first value of the specified request header as String object.
|
Enumeration<String> |
getHeaderNames()
Returns a collection of all the header names that the request contains.
|
Enumeration<String> |
getHeaders(String name)
Returns all the values of the specified request header as a collection of String objects.
|
String |
getHttpMethod()
Returns the name of the HTTP method with which this request was triggered.
|
Locale |
getLocale()
Returns the language specified in the Accept-Language header of the request.
|
MessageContainer |
getMessageContainer()
Gets the message container.
|
RequestContext |
getRequestContext()
Returns the additional request information in the context of the request protocol.
|
String |
getServiceName()
Returns the of the service
|
void |
setServiceName(String serviceName) |
public Locale getLocale()
Locale object representing the preferred languagepublic Enumeration<String> getHeaderNames()
Enumeration object containing header namespublic Enumeration<String> getHeaders(String name)
name - A String containing the header nameEnumeration object containing header valuespublic String getHeader(String name)
name - A String containing the header nameString containing header valuepublic boolean containsHeader(String name)
boolean indicating the presence of the headerpublic String getHttpMethod()
String returning the name of the HTTP methodpublic RequestContext getRequestContext()
((ODataRequestContext)this.getRequestContext).getODataRequest()RequestContext object containing the additional request informationpublic EntityMetadata getEntityMetadata()
EntityMetadata object containing metadata informationpublic MessageContainer getMessageContainer()
public String getServiceName()
String containing the name of the servicepublic void setServiceName(String serviceName)
Copyright © 2020 SAP. All Rights Reserved.