Top Description Inners Methods
io.netty.handler.codec.spdy

public Interface SpdyHeaders

extends Headers<CharSequence, CharSequence, SpdyHeaders>
Known Direct Implementers
io.netty.handler.codec.spdy.DefaultSpdyHeaders
Imports
io.netty.handler.codec.Headers, io.netty.util.AsciiString, java.util.Iterator, .List, .Map.Entry

Provides the constants for the standard SPDY HTTP header names and commonly used utility methods that access a SpdyHeadersFrame.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
SpdyHeaders.HttpNames

SPDY HTTP header names

Method Summary

Modifier and TypeMethod and Description
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
)

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

public List<String>

Returns:

a List of header values or an empty List if no values are found.
getAllAsString
(CharSequence
the name of the header to retrieve
name
)

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

public String

Returns:

the first header value if the header is found. null if there's no such header.
getAsString
(CharSequence
the name of the header to retrieve
name
)

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

public Iterator<Map.Entry<String, String>>
iteratorAsString()

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

Inherited from io.netty.handler.codec.Headers:
addaddaddaddaddBooleanaddByteaddCharaddDoubleaddFloataddIntaddLongaddObjectaddObjectaddObjectaddShortaddTimeMillisclearcontainscontainscontainsBooleancontainsBytecontainsCharcontainsDoublecontainsFloatcontainsIntcontainsLongcontainsObjectcontainsShortcontainsTimeMillisgetgetgetAllgetAllAndRemovegetAndRemovegetAndRemovegetBooleangetBooleangetBooleanAndRemovegetBooleanAndRemovegetBytegetBytegetByteAndRemovegetByteAndRemovegetChargetChargetCharAndRemovegetCharAndRemovegetDoublegetDoublegetDoubleAndRemovegetDoubleAndRemovegetFloatgetFloatgetFloatAndRemovegetFloatAndRemovegetIntgetIntgetIntAndRemovegetIntAndRemovegetLonggetLonggetLongAndRemovegetLongAndRemovegetShortgetShortgetShortAndRemovegetShortAndRemovegetTimeMillisgetTimeMillisgetTimeMillisAndRemovegetTimeMillisAndRemoveisEmptyiteratornamesremovesetsetsetsetsetAllsetBooleansetBytesetCharsetDoublesetFloatsetIntsetLongsetObjectsetObjectsetObjectsetShortsetTimeMillissize

Method Detail

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

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.

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

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.

getAsStringback to summary
public String getAsString(CharSequence name)

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.

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

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

io.netty.handler.codec.spdy back to summary

public final Class SpdyHeaders.HttpNames

extends Object
Class Inheritance

SPDY HTTP header names

Field Summary

Modifier and TypeField and Description
public static final AsciiString
HOST

":host"

public static final AsciiString
METHOD

":method"

public static final AsciiString
PATH

":path"

public static final AsciiString
SCHEME

":scheme"

public static final AsciiString
STATUS

":status"

public static final AsciiString
VERSION

":version"

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HOSTback to summary
public static final AsciiString HOST

":host"

METHODback to summary
public static final AsciiString METHOD

":method"

PATHback to summary
public static final AsciiString PATH

":path"

SCHEMEback to summary
public static final AsciiString SCHEME

":scheme"

STATUSback to summary
public static final AsciiString STATUS

":status"

VERSIONback to summary
public static final AsciiString VERSION

":version"

Constructor Detail

HttpNamesback to summary
private HttpNames()