org.androidannotations.api.rest
Interface RestClientHeaders


public interface RestClientHeaders

A @Rest interface implementing this interface will automatically have the implementations of these methods generated.


Method Summary
 String getCookie(String name)
          Gets a cookie by name.
 String getHeader(String name)
          Gets a header by name.
 void setAuthentication(org.springframework.http.HttpAuthentication auth)
          Sets the authentication object.
 void setCookie(String name, String value)
          Sets a cookie by name.
 void setHeader(String name, String value)
          Sets a header by name.
 void setHttpBasicAuth(String user, String password)
          Sets the basic authentication user/password.
 

Method Detail

getCookie

String getCookie(String name)
Gets a cookie by name.

Parameters:
name -
Returns:
the cookie value.

setCookie

void setCookie(String name,
               String value)
Sets a cookie by name.

Parameters:
name -
value -

getHeader

String getHeader(String name)
Gets a header by name.

Parameters:
name -
Returns:
the header value.

setHeader

void setHeader(String name,
               String value)
Sets a header by name.

Parameters:
name -
value -

setAuthentication

void setAuthentication(org.springframework.http.HttpAuthentication auth)
Sets the authentication object.

Parameters:
auth -

setHttpBasicAuth

void setHttpBasicAuth(String user,
                      String password)
Sets the basic authentication user/password.

Parameters:
user -
password -


Copyright © 2010-2014. All Rights Reserved.