public class DynamicsODataRequest
extends org.apache.olingo.client.core.communication.request.AbstractODataRequest
implements org.apache.olingo.client.api.communication.request.retrieve.ODataRawRequest
Constructor and Description |
---|
DynamicsODataRequest(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.olingo.commons.api.http.HttpMethod method,
URI uri,
org.apache.olingo.client.api.communication.request.retrieve.ODataRawRequest request) |
Modifier and Type | Method and Description |
---|---|
org.apache.olingo.client.api.communication.request.ODataRequest |
addCustomHeader(String s,
String s1) |
protected void |
checkResponse(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.http.HttpResponse response,
String accept) |
org.apache.olingo.client.api.communication.response.ODataRawResponse |
execute() |
String |
getAccept() |
String |
getContentType() |
org.apache.olingo.commons.api.format.ContentType |
getDefaultFormat() |
String |
getHeader(String s) |
Collection<String> |
getHeaderNames() |
String |
getIfMatch() |
String |
getIfNoneMatch() |
org.apache.olingo.commons.api.http.HttpMethod |
getMethod() |
String |
getPrefer() |
URI |
getURI() |
InputStream |
rawExecute() |
org.apache.olingo.client.api.communication.request.ODataRequest |
setAccept(String s) |
org.apache.olingo.client.api.communication.request.ODataRequest |
setContentType(String s) |
void |
setFormat(String s) |
org.apache.olingo.client.api.communication.request.ODataRequest |
setIfMatch(String s) |
org.apache.olingo.client.api.communication.request.ODataRequest |
setIfNoneMatch(String s) |
org.apache.olingo.client.api.communication.request.ODataRequest |
setPrefer(String s) |
void |
setURI(URI uri) |
org.apache.olingo.client.api.communication.request.ODataRequest |
setXHTTPMethod(String s) |
byte[] |
toByteArray() |
doExecute, getHeader, getResponseTemplate
public DynamicsODataRequest(org.apache.olingo.client.api.ODataClient odataClient, org.apache.olingo.commons.api.http.HttpMethod method, URI uri, org.apache.olingo.client.api.communication.request.retrieve.ODataRawRequest request)
public org.apache.olingo.commons.api.format.ContentType getDefaultFormat()
getDefaultFormat
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public URI getURI()
getURI
in interface org.apache.olingo.client.api.communication.request.ODataRequest
getURI
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public void setURI(URI uri)
setURI
in interface org.apache.olingo.client.api.communication.request.ODataRequest
setURI
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public org.apache.olingo.commons.api.http.HttpMethod getMethod()
getMethod
in interface org.apache.olingo.client.api.communication.request.ODataRequest
getMethod
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public Collection<String> getHeaderNames()
getHeaderNames
in interface org.apache.olingo.client.api.communication.request.ODataRequest
getHeaderNames
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public String getHeader(String s)
getHeader
in interface org.apache.olingo.client.api.communication.request.ODataRequest
getHeader
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public org.apache.olingo.client.api.communication.request.ODataRequest setAccept(String s)
setAccept
in interface org.apache.olingo.client.api.communication.request.ODataRequest
setAccept
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public String getAccept()
getAccept
in interface org.apache.olingo.client.api.communication.request.ODataRequest
getAccept
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public org.apache.olingo.client.api.communication.request.ODataRequest setIfMatch(String s)
setIfMatch
in interface org.apache.olingo.client.api.communication.request.ODataRequest
setIfMatch
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public String getIfMatch()
getIfMatch
in interface org.apache.olingo.client.api.communication.request.ODataRequest
getIfMatch
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public org.apache.olingo.client.api.communication.request.ODataRequest setIfNoneMatch(String s)
setIfNoneMatch
in interface org.apache.olingo.client.api.communication.request.ODataRequest
setIfNoneMatch
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public String getIfNoneMatch()
getIfNoneMatch
in interface org.apache.olingo.client.api.communication.request.ODataRequest
getIfNoneMatch
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public org.apache.olingo.client.api.communication.request.ODataRequest setPrefer(String s)
setPrefer
in interface org.apache.olingo.client.api.communication.request.ODataRequest
setPrefer
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public String getPrefer()
getPrefer
in interface org.apache.olingo.client.api.communication.request.ODataRequest
getPrefer
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public org.apache.olingo.client.api.communication.request.ODataRequest setContentType(String s)
setContentType
in interface org.apache.olingo.client.api.communication.request.ODataRequest
setContentType
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public String getContentType()
getContentType
in interface org.apache.olingo.client.api.communication.request.ODataRequest
getContentType
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public org.apache.olingo.client.api.communication.request.ODataRequest setXHTTPMethod(String s)
setXHTTPMethod
in interface org.apache.olingo.client.api.communication.request.ODataRequest
setXHTTPMethod
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public org.apache.olingo.client.api.communication.request.ODataRequest addCustomHeader(String s, String s1)
addCustomHeader
in interface org.apache.olingo.client.api.communication.request.ODataRequest
addCustomHeader
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public byte[] toByteArray()
toByteArray
in interface org.apache.olingo.client.api.communication.request.ODataRequest
toByteArray
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public InputStream rawExecute()
rawExecute
in interface org.apache.olingo.client.api.communication.request.ODataRequest
rawExecute
in class org.apache.olingo.client.core.communication.request.AbstractODataRequest
public void setFormat(String s)
setFormat
in interface org.apache.olingo.client.api.communication.request.retrieve.ODataRawRequest
public org.apache.olingo.client.api.communication.response.ODataRawResponse execute()
execute
in interface org.apache.olingo.client.api.communication.request.retrieve.ODataRawRequest
protected void checkResponse(org.apache.olingo.client.api.ODataClient odataClient, org.apache.http.HttpResponse response, String accept)
checkResponse
in class org.apache.olingo.client.core.communication.request.AbstractRequest
Copyright © 2010–2020. All rights reserved.