Class CodedUrlHeader
- java.lang.Object
-
- org.apache.jackrabbit.webdav.header.CodedUrlHeader
-
-
Constructor Summary
Constructors Constructor Description CodedUrlHeader(String headerName, String headerValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCodedUrl()
Returns the token present in the header value ornull
.String[]
getCodedUrls()
Return an array of coded urls as present in the header value ornull
if no value is present.String
getHeaderName()
Return the name of the headerString
getHeaderValue()
Return the value of the headerstatic CodedUrlHeader
parse(javax.servlet.http.HttpServletRequest request, String headerName)
Retrieves the header with the given name and builds a newCodedUrlHeader
.
-
-
-
Method Detail
-
getHeaderName
public String getHeaderName()
Return the name of the header- Specified by:
getHeaderName
in interfaceHeader
- Returns:
- header name
- See Also:
Header.getHeaderName()
-
getHeaderValue
public String getHeaderValue()
Return the value of the header- Specified by:
getHeaderValue
in interfaceHeader
- Returns:
- value
- See Also:
Header.getHeaderValue()
-
getCodedUrl
public 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 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(javax.servlet.http.HttpServletRequest request, String headerName)
Retrieves the header with the given name and builds a newCodedUrlHeader
.- Parameters:
request
-headerName
-- Returns:
- new
CodedUrlHeader
instance
-
-