Constructor and Description |
---|
CodedUrlHeader(java.lang.String headerName,
java.lang.String headerValue) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCodedUrl()
Returns the token present in the header value or
null . |
java.lang.String[] |
getCodedUrls()
Return an array of coded urls as present in the header value or
null if
no value is present. |
java.lang.String |
getHeaderName()
Return the name of the header
|
java.lang.String |
getHeaderValue()
Return the value of the header
|
static CodedUrlHeader |
parse(HttpServletRequest request,
java.lang.String headerName)
Retrieves the header with the given name and builds a new
CodedUrlHeader . |
public CodedUrlHeader(java.lang.String headerName, java.lang.String headerValue)
public java.lang.String getHeaderName()
getHeaderName
in interface Header
Header.getHeaderName()
public java.lang.String getHeaderValue()
getHeaderValue
in interface Header
Header.getHeaderValue()
public java.lang.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 java.lang.String[] getCodedUrls()
null
if
no value is present.public static CodedUrlHeader parse(HttpServletRequest request, java.lang.String headerName)
CodedUrlHeader
.request
- headerName
- CodedUrlHeader
instanceCopyright © 2010 - 2020 Adobe. All Rights Reserved