common/src/main/java/HTTPClient/Util.java
/**
     * Determines if the given header contains a certain token. The header
     * must conform to the rules outlined in parseHeader().
     *
     * @see #parseHeader(java.lang.String)
     * @param header the header value.
     * @param token  the token to find; the match is case-insensitive.
     * @return true if the token is present, false otherwise.
     * @exception ParseException if this is thrown parseHeader().
     */
Determines if the given header contains a certain token. The header
must conform to the rules outlined in parseHeader().

@see #parseHeader(java.lang.String)
@param header the header value.
@param token  the token to find; the match is case-insensitive.
@return true if the token is present, false otherwise.
@exception ParseException if this is thrown parseHeader().
Determines if the given header contains a certain token . The header must conform to the rules outlined in parseHeader () . @see #parseHeader ( java . lang . String ) @param header the header value . @param token the token to find ; the match is case - insensitive . @return true if the token is present false otherwise . @exception ParseException if this is thrown parseHeader () .
public final static boolean hasToken(String header, String token)
	    throws ParseException
    {
	if (header == null)
	    return false;
	else
	    return parseHeader(header).contains(new HttpHeaderElement(token));
    }
public final static boolean hasToken ( String header , String token ) throws ParseException { if ( header == null ) return false ; else return parseHeader ( header ) . contains ( new HttpHeaderElement ( token ) ) ; }
Determines if the given header contains a certain token.
Determines if the given header contains a certain token .