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 StringgetCodedUrl()Returns the token present in the header value ornull.String[]getCodedUrls()Return an array of coded urls as present in the header value ornullif no value is present.StringgetHeaderName()Return the name of the headerStringgetHeaderValue()Return the value of the headerstatic CodedUrlHeaderparse(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:
getHeaderNamein interfaceHeader- Returns:
- header name
- See Also:
Header.getHeaderName()
-
getHeaderValue
public String getHeaderValue()
Return the value of the header- Specified by:
getHeaderValuein 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
nullif the header is not present. - See Also:
getCodedUrls()
-
getCodedUrls
public String[] getCodedUrls()
Return an array of coded urls as present in the header value ornullif 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
CodedUrlHeaderinstance
-
-