public abstract class

AbstractKinveyClientRequest

extends GenericData
java.lang.Object
   ↳ java.util.AbstractMap<K, V>
     ↳ com.google.api.client.util.GenericData
       ↳ com.kinvey.java.core.AbstractKinveyClientRequest<T>
Known Direct Subclasses
Known Indirect Subclasses

Summary

Public Methods
HttpRequest buildHttpRequest()
@return
T execute()
@return
void executeAndDownloadTo(OutputStream out)
Sends the metadata request to the server and writes the metadata content input stream of HttpResponse into the given destination output stream.
InputStream executeAsInputStream()
Sends the metadata request to the server and returns the metadata content input stream of HttpResponse.
HttpResponse executeUnparsed()
AbstractKinveyClient getAbstractKinveyClient()
final MediaHttpDownloader getDownloader()
final HttpContent getHttpContent()
final int getLastResponseCode()
final HttpHeaders getLastResponseHeaders()
final String getLastResponseMessage()
BackOffPolicy getRequestBackoffPolicy()
final HttpHeaders getRequestHeaders()
final String getRequestMethod()
final Class<T> getResponseClass()
final MediaHttpUploader getUploader()
final String getUriTemplate()
AbstractKinveyClientRequest setAppKey(String appKey)
AbstractKinveyClientRequest<T> setRequestHeaders(HttpHeaders headers)
[Expand]
Inherited Methods
From class com.google.api.client.util.GenericData
From class java.util.AbstractMap
From class java.lang.Object
From interface java.util.Map

Public Methods

public HttpRequest buildHttpRequest ()

@return

Throws
IOException

public T execute ()

@return

Throws
IOException

public void executeAndDownloadTo (OutputStream out)

Sends the metadata request to the server and writes the metadata content input stream of HttpResponse into the given destination output stream.

This method closes the content of the HTTP response from getContent().

Subclasses may override by calling the super implementation.

Parameters
out destination output stream
Throws
IOException

public InputStream executeAsInputStream ()

Sends the metadata request to the server and returns the metadata content input stream of HttpResponse.

Callers are responsible for closing the input stream after it is processed. Example sample:

 InputStream is = request.executeAsInputStream();
 try {
 // Process input stream..
 } finally {
 is.close();
 }
 

Subclasses may override by calling the super implementation.

Returns
  • input stream of the response content
Throws
IOException

public HttpResponse executeUnparsed ()

Throws
IOException

public AbstractKinveyClient getAbstractKinveyClient ()

Returns
  • the abstractKinveyClient

public final MediaHttpDownloader getDownloader ()

Returns
  • the downloader

public final HttpContent getHttpContent ()

Returns
  • the httpContent

public final int getLastResponseCode ()

Returns
  • the lastResponseCode

public final HttpHeaders getLastResponseHeaders ()

Returns
  • the lastResponseHeaders

public final String getLastResponseMessage ()

Returns
  • the lastResponseMessage

public BackOffPolicy getRequestBackoffPolicy ()

Returns
  • the Backoff Policy

public final HttpHeaders getRequestHeaders ()

Returns
  • the httpHeaders

public final String getRequestMethod ()

Returns
  • the requestMethod

public final Class<T> getResponseClass ()

Returns
  • the responseClass

public final MediaHttpUploader getUploader ()

Returns
  • the uploader

public final String getUriTemplate ()

Returns
  • the uriTemplate

public AbstractKinveyClientRequest setAppKey (String appKey)

public AbstractKinveyClientRequest<T> setRequestHeaders (HttpHeaders headers)