Class CodedUrlHeader
- java.lang.Object
-
- org.apache.jackrabbit.webdav.header.CodedUrlHeader
-
-
Constructor Summary
Constructors Constructor Description CodedUrlHeader(java.lang.String headerName, java.lang.String headerValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCodedUrl()
Returns the token present in the header value ornull
.java.lang.String[]
getCodedUrls()
Return an array of coded urls as present in the header value ornull
if no value is present.java.lang.String
getHeaderName()
Return the name of the headerjava.lang.String
getHeaderValue()
Return the value of the headerstatic CodedUrlHeader
parse(HttpServletRequest request, java.lang.String headerName)
Retrieves the header with the given name and builds a newCodedUrlHeader
.
-
-
-
Method Detail
-
getHeaderName
public java.lang.String getHeaderName()
Return the name of the header- Specified by:
getHeaderName
in interfaceHeader
- Returns:
- header name
- See Also:
Header.getHeaderName()
-
getHeaderValue
public java.lang.String getHeaderValue()
Return the value of the header- Specified by:
getHeaderValue
in interfaceHeader
- Returns:
- value
- See Also:
Header.getHeaderValue()
-
getCodedUrl
public java.lang.String getCodedUrl()
Returns the token present in the header value ornull
. If the header contained multiple tokens separated by ',' the first value is returned.- Returns:
- token present in the CodedURL header or
null
if the header is not present. - See Also:
getCodedUrls()
-
getCodedUrls
public java.lang.String[] getCodedUrls()
Return an array of coded urls as present in the header value ornull
if no value is present.- Returns:
- array of coded urls
-
parse
public static CodedUrlHeader parse(HttpServletRequest request, java.lang.String headerName)
Retrieves the header with the given name and builds a newCodedUrlHeader
.- Parameters:
request
-headerName
-- Returns:
- new
CodedUrlHeader
instance
-
-