class HttpHeaderUtils {

    public static boolean isValidHttpHeaderName( String name )
    {
        if ( name == null || name.length() == 0 )
        {
            return false;
        }
        boolean isBlank = true;
        for ( int i = 0; i < name.length(); i++ )
        {
            char c = name.charAt( i );
            if ( Character.isISOControl( c ) )
            {
                return false;
            }
            if ( !Character.isWhitespace( c ) )
            {
                isBlank = false;
            }
        }
        return !isBlank;
    }

    private  HttpHeaderUtils();

}