public interface ODataRequest
CUDRequestFactory
,
BatchRequestFactory
,
InvokeRequestFactory
Modifier and Type | Method and Description |
---|---|
ODataRequest |
addCustomHeader(String name,
String value)
Adds a custom OData request header.
|
String |
getAccept()
Gets Accept OData request header.
|
String |
getContentType()
Gets contentType OData request header.
|
String |
getHeader(String name)
Gets the value of the OData request header identified by the given name.
|
Collection<String> |
getHeaderNames()
Gets all OData request header names.
|
String |
getIfMatch()
Gets If-Match OData request header.
|
String |
getIfNoneMatch()
Gets If-None-Match OData request header.
|
HttpMethod |
getMethod()
Returns HTTP request method.
|
String |
getPrefer()
Gets Prefer OData request header.
|
URI |
getURI()
Returns OData request target URI.
|
InputStream |
rawExecute()
Request raw execute.
|
ODataRequest |
setAccept(String value)
Adds Accept OData request header.
|
ODataRequest |
setContentType(String value)
Adds contentType OData request header.
|
ODataRequest |
setIfMatch(String value)
Adds If-Match OData request header.
|
ODataRequest |
setIfNoneMatch(String value)
Adds If-None-Match OData request header.
|
ODataRequest |
setPrefer(String value)
Adds Prefer OData request header.
|
void |
setURI(URI uri)
Sets OData request target URI.
|
ODataRequest |
setXHTTPMethod(String value)
Adds X-HTTP-METHOD OData request header.
|
byte[] |
toByteArray()
Gets byte array representation of the full request header.
|
URI getURI()
void setURI(URI uri)
uri
- target URI.HttpMethod getMethod()
Collection<String> getHeaderNames()
String getHeader(String name)
name
- name of the OData request header to be retrieved.ODataRequest setAccept(String value)
value
- header value.HttpHeader.ACCEPT
String getAccept()
HttpHeader.ACCEPT
ODataRequest setIfMatch(String value)
value
- header value.HttpHeader.IF_MATCH
String getIfMatch()
HttpHeader.IF_MATCH
ODataRequest setIfNoneMatch(String value)
value
- header value.HttpHeader.IF_NONE_MATCH
String getIfNoneMatch()
HttpHeader.IF_NONE_MATCH
ODataRequest setPrefer(String value)
value
- header value.HttpHeader.PREFER
String getPrefer()
HttpHeader.PREFER
ODataRequest setContentType(String value)
value
- header value.HttpHeader.CONTENT_TYPE
String getContentType()
HttpHeader.CONTENT_TYPE
ODataRequest setXHTTPMethod(String value)
value
- header value.HttpHeader.X_HTTP_METHOD
ODataRequest addCustomHeader(String name, String value)
name
- header name.value
- header value.byte[] toByteArray()
InputStream rawExecute()
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.