|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.transport.http.Headers
public class Headers
Field Summary | |
---|---|
static String |
ADD_HEADERS_PROPERTY
Each header value is added as a separate HTTP header, example, given A header with 'a' and 'b' values, two A headers will be added as opposed to a single A header with the "a,b" value. |
static String |
HTTP_HEADERS_LINK
|
static String |
HTTP_HEADERS_SETCOOKIE
|
static String |
KEY_HTTP_CONNECTION
This constant is the Message(Map) key for the HttpURLConnection that is used to get the response. |
static String |
PROTOCOL_HEADERS_CONTENT_TYPE
|
Constructor Summary | |
---|---|
Headers()
|
|
Headers(Message message)
|
Method Summary | |
---|---|
protected void |
copyFromRequest(javax.servlet.http.HttpServletRequest req)
Copy the request headers into the message. |
protected void |
copyToResponse(javax.servlet.http.HttpServletResponse response)
Copy the response headers into the response. |
String |
determineContentType()
|
String |
getAuthorization()
|
static SimpleDateFormat |
getHttpDateFormat()
|
static Map<String,List<String>> |
getSetProtocolHeaders(Message message)
While extracting the Message.PROTOCOL_HEADERS property from the Message, this call ensures that the Message.PROTOCOL_HEADERS property is set on the Message. |
Map<String,List<String>> |
headerMap()
|
void |
readFromConnection(HttpURLConnection connection)
|
void |
removeAuthorizationHeaders()
|
void |
setAuthorization(String authorization)
|
void |
setProtocolHeadersInConnection(HttpURLConnection connection)
Set content type and protocol headers (Message.PROTOCOL_HEADERS) headers into the URL connection. |
void |
setProxyAuthorization(String authorization)
|
static String |
toHttpDate(Date date)
|
static String |
toHttpLanguage(Locale locale)
|
void |
writeSessionCookies(Map<String,Cookie> sessionCookies)
Write cookie header from given session cookies |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String KEY_HTTP_CONNECTION
public static final String ADD_HEADERS_PROPERTY
public static final String PROTOCOL_HEADERS_CONTENT_TYPE
public static final String HTTP_HEADERS_SETCOOKIE
public static final String HTTP_HEADERS_LINK
Constructor Detail |
---|
public Headers(Message message)
public Headers()
Method Detail |
---|
public Map<String,List<String>> headerMap()
public void writeSessionCookies(Map<String,Cookie> sessionCookies)
sessionCookies
- public void removeAuthorizationHeaders()
public void setAuthorization(String authorization)
public void setProxyAuthorization(String authorization)
public static Map<String,List<String>> getSetProtocolHeaders(Message message)
message
- The outbound message
public void readFromConnection(HttpURLConnection connection)
public void setProtocolHeadersInConnection(HttpURLConnection connection) throws IOException
connection
-
IOException
public String determineContentType()
protected void copyFromRequest(javax.servlet.http.HttpServletRequest req)
message
- the current messageheaders
- the current set of headersprotected void copyToResponse(javax.servlet.http.HttpServletResponse response)
message
- the current messageheaders
- the current set of headerspublic String getAuthorization()
public static SimpleDateFormat getHttpDateFormat()
public static String toHttpDate(Date date)
public static String toHttpLanguage(Locale locale)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |