Class CodedUrlHeader

  • All Implemented Interfaces:
    Header

    public class CodedUrlHeader
    extends Object
    implements Header
    CodedUrlHeader...
    • Constructor Detail

      • CodedUrlHeader

        public CodedUrlHeader​(String headerName,
                              String headerValue)
    • Method Detail

      • getCodedUrl

        public String getCodedUrl()
        Returns the token present in the header value or null. 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 or null 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 new CodedUrlHeader.
        Parameters:
        request -
        headerName -
        Returns:
        new CodedUrlHeader instance