public final class ProxySupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSESSIONID |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isHopByHopHeader(String header)
Checks if the passed-in header is a hop-by-hop header as defined by
RFC-2616 Section 13.5.1.
|
static boolean |
isSetCookieHeader(org.apache.commons.httpclient.Header header)
Determines whether the passed-in header is a 'Set-Cookie' header.
|
static String |
replaceCookieAttributes(String header,
String path,
String domain)
Returns the contents of a
Set-Cookie header with it's optional path and
domain attributes replaced by the passed in values. |
public static final String JSESSIONID
public static boolean isHopByHopHeader(String header)
header - the header name to check.true if the header is a hop-by-hop header, false otherwise.public static String replaceCookieAttributes(String header, String path, String domain)
Set-Cookie header with it's optional path and
domain attributes replaced by the passed in values.header - the Set-Cookie header for which path and domain should be replaced.path - the new path for the cookie. If null the original value of for path is used.domain - the domain for the cookie. If null the original value of for domain is used.String the contents of the Set-Cookie header. The reason for not returning the complete
header including the headers name (Set-Cookie) is make this method useful with the
Java Servlet API and HttpServletResponse.setHeader(String, String).public static boolean isSetCookieHeader(org.apache.commons.httpclient.Header header)
header - the Header to checktrue if the header is a 'Set-Cookie' header, false otherwise.Copyright © 2011–2015 Red Hat. All rights reserved.