public class Header extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPT |
static String |
AUTHORIZATION |
static String |
CHUNKED |
static String |
CONNECTION |
static String |
CONTENT_ENCODING |
static String |
CONTENT_LENGTH |
static String |
CONTENT_TYPE |
static String |
EXPECT |
static String |
HOST |
static String |
LOCATION |
static String |
PROXY_AUTHORIZATION |
static String |
PROXY_CONNECTION |
static String |
SOAP_ACTION |
static String |
TRANSFER_ENCODING |
static String |
X_FORWARDED_FOR |
Constructor and Description |
---|
Header() |
Header(Header header) |
Header(InputStream in) |
Header(String header) |
public static final String TRANSFER_ENCODING
public static final String CONTENT_ENCODING
public static final String CONTENT_LENGTH
public static final String CONTENT_TYPE
public static final String CONNECTION
public static final String PROXY_CONNECTION
public static final String HOST
public static final String EXPECT
public static final String X_FORWARDED_FOR
public static final String PROXY_AUTHORIZATION
public static final String SOAP_ACTION
public static final String ACCEPT
public static final String LOCATION
public static final String AUTHORIZATION
public static final String CHUNKED
public Header()
public Header(InputStream in) throws IOException, EndOfStreamException
IOException
EndOfStreamException
public Header(String header) throws IOException, EndOfStreamException
IOException
EndOfStreamException
public Header(Header header)
public void add(HeaderField field)
public void remove(HeaderField field)
public void removeFields(String name)
public List<HeaderField> getValues(HeaderName headerName)
public HeaderField[] getAllHeaderFields()
public void write(OutputStream out) throws IOException
HttpUtil.readLine(InputStream)
assembles the String byte-by-byte
converting it to char-by-char, we use ISO-8859-1 for output here.IOException
public HeaderField setValue(String name, String value)
public void setHost(String value)
public void setContentLength(int length)
public void setProxyAutorization(String value)
public boolean isChunked()
public int getContentLength()
public String getContentType()
public javax.mail.internet.ContentType getContentTypeObject() throws javax.mail.internet.ParseException
javax.mail.internet.ParseException
public void setContentType(String value)
public String getSOAPAction()
public void setSOAPAction(String value)
public String getAccept()
public void setAccept(String value)
public String getConnection()
public void setConnection(String connection)
public String getProxyConnection()
public void setProxyConnection(String connection)
public boolean isProxyConnectionClose()
public boolean isConnectionClose()
public boolean hasContentLength()
public String getHost()
public boolean is100ContinueExpected()
public void setAuthorization(String user, String password) throws UnsupportedEncodingException
UnsupportedEncodingException
public void setXForwardedFor(String value)
public String getXForwardedFor()
public String getContentEncoding()
public String getCharset()
Copyright © 2012. All Rights Reserved.