Build 1.0_r1(from source)

android.net.http
Class Headers

java.lang.Object
  extended by android.net.http.Headers

public final class Headers
extends Object

Manages received headers


Field Summary
static String ACCEPT_RANGES
           
static String CACHE_CONTROL
           
static int CONN_CLOSE
          indicate HTTP 1.0 connection close after the response
static String CONN_DIRECTIVE
           
static int CONN_KEEP_ALIVE
          indicate HTTP 1.1 connection keep alive
static String CONTENT_DISPOSITION
           
static String CONTENT_ENCODING
           
static String CONTENT_LEN
           
static String CONTENT_TYPE
           
static String ETAG
           
static String EXPIRES
           
static String LAST_MODIFIED
           
static String LOCATION
           
static int NO_CONN_TYPE
           
static long NO_CONTENT_LENGTH
           
static long NO_TRANSFER_ENCODING
           
static String PRAGMA
           
static String PROXY_AUTHENTICATE
           
static String PROXY_CONNECTION
           
static String REFRESH
           
static String SET_COOKIE
           
static String TRANSFER_ENCODING
           
static String WWW_AUTHENTICATE
           
 
Constructor Summary
Headers()
           
 
Method Summary
 String getAcceptRanges()
           
 String getCacheControl()
           
 int getConnectionType()
           
 String getContentDisposition()
           
 String getContentEncoding()
           
 long getContentLength()
           
 String getContentType()
           
 String getEtag()
           
 String getExpires()
           
 String getLastModified()
           
 String getLocation()
           
 String getPragma()
           
 String getProxyAuthenticate()
           
 String getRefresh()
           
 ArrayList<String> getSetCookie()
           
 long getTransferEncoding()
           
 String getWwwAuthenticate()
           
 void parseHeader(CharArrayBuffer buffer)
           
 void setAcceptRanges(String value)
           
 void setCacheControl(String value)
           
 void setContentDisposition(String value)
           
 void setContentEncoding(String value)
           
 void setContentLength(long value)
           
 void setContentType(String value)
           
 void setEtag(String value)
           
 void setExpires(String value)
           
 void setLastModified(String value)
           
 void setLocation(String value)
           
 void setProxyAuthenticate(String value)
           
 void setWwwAuthenticate(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONN_CLOSE

public static final int CONN_CLOSE
indicate HTTP 1.0 connection close after the response

See Also:
Constant Field Values

CONN_KEEP_ALIVE

public static final int CONN_KEEP_ALIVE
indicate HTTP 1.1 connection keep alive

See Also:
Constant Field Values

NO_CONN_TYPE

public static final int NO_CONN_TYPE
See Also:
Constant Field Values

NO_TRANSFER_ENCODING

public static final long NO_TRANSFER_ENCODING
See Also:
Constant Field Values

NO_CONTENT_LENGTH

public static final long NO_CONTENT_LENGTH
See Also:
Constant Field Values

TRANSFER_ENCODING

public static final String TRANSFER_ENCODING
See Also:
Constant Field Values

CONTENT_LEN

public static final String CONTENT_LEN
See Also:
Constant Field Values

CONTENT_TYPE

public static final String CONTENT_TYPE
See Also:
Constant Field Values

CONTENT_ENCODING

public static final String CONTENT_ENCODING
See Also:
Constant Field Values

CONN_DIRECTIVE

public static final String CONN_DIRECTIVE
See Also:
Constant Field Values

LOCATION

public static final String LOCATION
See Also:
Constant Field Values

PROXY_CONNECTION

public static final String PROXY_CONNECTION
See Also:
Constant Field Values

WWW_AUTHENTICATE

public static final String WWW_AUTHENTICATE
See Also:
Constant Field Values

PROXY_AUTHENTICATE

public static final String PROXY_AUTHENTICATE
See Also:
Constant Field Values

CONTENT_DISPOSITION

public static final String CONTENT_DISPOSITION
See Also:
Constant Field Values

ACCEPT_RANGES

public static final String ACCEPT_RANGES
See Also:
Constant Field Values

EXPIRES

public static final String EXPIRES
See Also:
Constant Field Values

CACHE_CONTROL

public static final String CACHE_CONTROL
See Also:
Constant Field Values

LAST_MODIFIED

public static final String LAST_MODIFIED
See Also:
Constant Field Values

ETAG

public static final String ETAG
See Also:
Constant Field Values

SET_COOKIE

public static final String SET_COOKIE
See Also:
Constant Field Values

PRAGMA

public static final String PRAGMA
See Also:
Constant Field Values

REFRESH

public static final String REFRESH
See Also:
Constant Field Values
Constructor Detail

Headers

public Headers()
Method Detail

parseHeader

public void parseHeader(CharArrayBuffer buffer)

getTransferEncoding

public long getTransferEncoding()

getContentLength

public long getContentLength()

getConnectionType

public int getConnectionType()

getContentType

public String getContentType()

getContentEncoding

public String getContentEncoding()

getLocation

public String getLocation()

getWwwAuthenticate

public String getWwwAuthenticate()

getProxyAuthenticate

public String getProxyAuthenticate()

getContentDisposition

public String getContentDisposition()

getAcceptRanges

public String getAcceptRanges()

getExpires

public String getExpires()

getCacheControl

public String getCacheControl()

getLastModified

public String getLastModified()

getEtag

public String getEtag()

getSetCookie

public ArrayList<String> getSetCookie()

getPragma

public String getPragma()

getRefresh

public String getRefresh()

setContentLength

public void setContentLength(long value)

setContentType

public void setContentType(String value)

setContentEncoding

public void setContentEncoding(String value)

setLocation

public void setLocation(String value)

setWwwAuthenticate

public void setWwwAuthenticate(String value)

setProxyAuthenticate

public void setProxyAuthenticate(String value)

setContentDisposition

public void setContentDisposition(String value)

setAcceptRanges

public void setAcceptRanges(String value)

setExpires

public void setExpires(String value)

setCacheControl

public void setCacheControl(String value)

setLastModified

public void setLastModified(String value)

setEtag

public void setEtag(String value)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature