AeroGear Android Library 1.1.0

org.jboss.aerogear.android.pipeline
Interface RequestBuilder<T>

All Known Implementing Classes:
GsonRequestBuilder, MultipartRequestBuilder

public interface RequestBuilder<T>


Method Summary
 byte[] getBody(T data)
          This method creates the body of a request for a Pipe to use.
 String getContentType()
           
 

Method Detail

getBody

byte[] getBody(T data)
This method creates the body of a request for a Pipe to use. This is basically a serialization style operation.

Parameters:
data - an object to form a body out of.
Returns:
A request body which represents the data parameter

getContentType

String getContentType()
Returns:
the Content-Type header to be sent to the server.

AeroGear Android Library 1.1.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.