Top Inners Fields Constructors Methods
io.netty.handler.codec.spdy

public Class DefaultSpdyHeaders

extends DefaultHeaders<CharSequence, CharSequence, SpdyHeaders>
implements SpdyHeaders
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.spdy.SpdyHeaders, io.netty.handler.codec.Headers, java.lang.Iterable
Imports
io.netty.handler.codec.CharSequenceValueConverter, .DefaultHeaders, .HeadersUtils, java.util.Iterator, .List, .Map.Entry

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final DefaultHeaders.NameValidator<CharSequence>
Inherited from io.netty.handler.codec.DefaultHeaders:
head

Constructor Summary

AccessConstructor and Description
public
public
DefaultSpdyHeaders(boolean validate)

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(CharSequence
the header name
name
,
CharSequence
the header value of the header to find
value
)

Overrides io.netty.handler.codec.DefaultHeaders.contains.

Implements io.netty.handler.codec.Headers.contains.

Returns true if a header with the name and value exists, false otherwise.
public boolean
contains(CharSequence
the name of the header to find
name
,
CharSequence
the value of the header to find
value
,
boolean
true then a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.
ignoreCase
)

Implements io.netty.handler.codec.spdy.SpdyHeaders.contains.

Returns true if a header with the name and value exists, false otherwise.
public List<String>
getAllAsString(CharSequence
the name of the header to retrieve
name
)

Implements io.netty.handler.codec.spdy.SpdyHeaders.getAllAsString.

Headers#getAll(Object) and convert each element of List to a String.
public String
getAsString(CharSequence
the name of the header to retrieve
name
)

Implements io.netty.handler.codec.spdy.SpdyHeaders.getAsString.

Headers#get(Object) and convert the result to a String.
public Iterator<Map.Entry<String, String>>
Inherited from io.netty.handler.codec.DefaultHeaders:
addaddaddaddaddBooleanaddByteaddCharaddDoubleaddFloataddImpladdIntaddLongaddObjectaddObjectaddObjectaddShortaddTimeMillisclearcontainscontainscontainsBooleancontainsBytecontainsCharcontainsDoublecontainsFloatcontainsIntcontainsLongcontainsObjectcontainsShortcontainsTimeMilliscopyequalsequalsgetgetgetAllgetAllAndRemovegetAndRemovegetAndRemovegetBooleangetBooleangetBooleanAndRemovegetBooleanAndRemovegetBytegetBytegetByteAndRemovegetByteAndRemovegetChargetChargetCharAndRemovegetCharAndRemovegetDoublegetDoublegetDoubleAndRemovegetDoubleAndRemovegetFloatgetFloatgetFloatAndRemovegetFloatAndRemovegetIntgetIntgetIntAndRemovegetIntAndRemovegetLonggetLonggetLongAndRemovegetLongAndRemovegetShortgetShortgetShortAndRemovegetShortAndRemovegetTimeMillisgetTimeMillisgetTimeMillisAndRemovegetTimeMillisAndRemovehashCodehashCodeisEmptyiteratornamesnameValidatornewHeaderEntryremovesetsetsetsetsetAllsetBooleansetBytesetCharsetDoublesetFloatsetIntsetLongsetObjectsetObjectsetObjectsetShortsetTimeMillissizetoStringvalidateNamevalidateValuevalueConvertervalueIteratorvalueValidator

Field Detail

SpdyNameValidatorback to summary
private static final DefaultHeaders.NameValidator<CharSequence> SpdyNameValidator

Constructor Detail

DefaultSpdyHeadersback to summary
public DefaultSpdyHeaders()
DefaultSpdyHeadersback to summary
public DefaultSpdyHeaders(boolean validate)
Annotations
@SuppressWarnings:unchecked

Method Detail

containsback to summary
public boolean contains(CharSequence name, CharSequence value)

Overrides io.netty.handler.codec.DefaultHeaders.contains.

Implements io.netty.handler.codec.Headers.contains.

Doc from io.netty.handler.codec.Headers.contains.

Returns true if a header with the name and value exists, false otherwise.

The Object#equals(Object) method is used to test for equality of value.

Parameters
name:CharSequence

the header name

value:CharSequence

the header value of the header to find

Annotations
@Override
containsback to summary
public boolean contains(CharSequence name, CharSequence value, boolean ignoreCase)

Implements io.netty.handler.codec.spdy.SpdyHeaders.contains.

Doc from io.netty.handler.codec.spdy.SpdyHeaders.contains.

Returns true if a header with the name and value exists, false otherwise.

If ignoreCase is true then a case insensitive compare is done on the value.

Parameters
name:CharSequence

the name of the header to find

value:CharSequence

the value of the header to find

ignoreCase:boolean

true then a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.

Annotations
@Override
getAllAsStringback to summary
public List<String> getAllAsString(CharSequence name)

Implements io.netty.handler.codec.spdy.SpdyHeaders.getAllAsString.

Doc from io.netty.handler.codec.spdy.SpdyHeaders.getAllAsString.

Headers#getAll(Object) and convert each element of List to a String.

Parameters
name:CharSequence

the name of the header to retrieve

Returns:List<String>

a List of header values or an empty List if no values are found.

Annotations
@Override
getAsStringback to summary
public String getAsString(CharSequence name)

Implements io.netty.handler.codec.spdy.SpdyHeaders.getAsString.

Doc from io.netty.handler.codec.spdy.SpdyHeaders.getAsString.

Headers#get(Object) and convert the result to a String.

Parameters
name:CharSequence

the name of the header to retrieve

Returns:String

the first header value if the header is found. null if there's no such header.

Annotations
@Override
iteratorAsStringback to summary
public Iterator<Map.Entry<String, String>> iteratorAsString()

Implements io.netty.handler.codec.spdy.SpdyHeaders.iteratorAsString.

Doc from io.netty.handler.codec.spdy.SpdyHeaders.iteratorAsString.

iterator() that converts each Entry's key and value to a String.

Annotations
@Override
io.netty.handler.codec.spdy back to summary

private final Class DefaultSpdyHeaders.HeaderValueConverterAndValidator

extends CharSequenceValueConverter
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final DefaultSpdyHeaders.HeaderValueConverterAndValidator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public CharSequence
Inherited from io.netty.handler.codec.CharSequenceValueConverter:
convertBooleanconvertByteconvertCharconvertDoubleconvertFloatconvertIntconvertLongconvertShortconvertTimeMillisconvertToBooleanconvertToByteconvertToCharconvertToDoubleconvertToFloatconvertToIntconvertToLongconvertToShortconvertToTimeMillis

Field Detail

INSTANCEback to summary
public static final DefaultSpdyHeaders.HeaderValueConverterAndValidator INSTANCE

Hides io.netty.handler.codec.CharSequenceValueConverter.INSTANCE.

Constructor Detail

HeaderValueConverterAndValidatorback to summary
private HeaderValueConverterAndValidator()

Method Detail

convertObjectback to summary
public CharSequence convertObject(Object value)

Overrides io.netty.handler.codec.CharSequenceValueConverter.convertObject.

Implements io.netty.handler.codec.ValueConverter.convertObject.

Annotations
@Override