| Constructor and Description |
|---|
CodedUrlHeader(String headerName,
String headerValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCodedUrl()
Returns the token present in the header value or
null. |
String[] |
getCodedUrls()
Return an array of coded urls as present in the header value or
null if
no value is present. |
String |
getHeaderName()
Return the name of the header
|
String |
getHeaderValue()
Return the value of the header
|
static CodedUrlHeader |
parse(javax.servlet.http.HttpServletRequest request,
String headerName)
Retrieves the header with the given name and builds a new
CodedUrlHeader. |
public String getHeaderName()
getHeaderName in interface HeaderHeader.getHeaderName()public String getHeaderValue()
getHeaderValue in interface HeaderHeader.getHeaderValue()public String getCodedUrl()
null.
If the header contained multiple tokens separated by ',' the first value
is returned.null if
the header is not present.getCodedUrls()public String[] getCodedUrls()
null if
no value is present.public static CodedUrlHeader parse(javax.servlet.http.HttpServletRequest request, String headerName)
CodedUrlHeader.request - headerName - CodedUrlHeader instanceCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.