Class CodedUrlHeader

  • All Implemented Interfaces:
    Header

    public class CodedUrlHeader
    extends java.lang.Object
    implements 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 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CodedUrlHeader

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

      • getCodedUrl

        public java.lang.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 java.lang.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​(HttpServletRequest request,
                                           java.lang.String headerName)
        Retrieves the header with the given name and builds a new CodedUrlHeader.
        Parameters:
        request -
        headerName -
        Returns:
        new CodedUrlHeader instance