Package | Description |
---|---|
org.jboss.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
org.jboss.netty.handler.codec.rtsp |
An RTSP
extension based on the HTTP codec.
|
org.jboss.netty.handler.codec.spdy |
Encoder, decoder, session handler and their related message types for the SPDY protocol.
|
Modifier and Type | Interface and Description |
---|---|
interface |
HttpRequest
An HTTP request.
|
interface |
HttpResponse
An HTTP response.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultHttpMessage
The default
HttpMessage implementation. |
class |
DefaultHttpRequest
The default
HttpRequest implementation. |
class |
DefaultHttpResponse
The default
HttpResponse implementation. |
Modifier and Type | Method and Description |
---|---|
protected HttpMessage |
HttpResponseDecoder.createMessage(String[] initialLine) |
protected HttpMessage |
HttpRequestDecoder.createMessage(String[] initialLine) |
protected abstract HttpMessage |
HttpMessageDecoder.createMessage(String[] initialLine) |
Modifier and Type | Method and Description |
---|---|
static void |
HttpHeaders.addHeader(HttpMessage message,
String name,
Object value)
Adds a new header with the specified name and value.
|
static void |
HttpHeaders.addIntHeader(HttpMessage message,
String name,
int value)
Adds a new integer header with the specified name and value.
|
protected void |
HttpResponseEncoder.encodeInitialLine(ChannelBuffer buf,
HttpMessage message) |
protected void |
HttpRequestEncoder.encodeInitialLine(ChannelBuffer buf,
HttpMessage message) |
protected abstract void |
HttpMessageEncoder.encodeInitialLine(ChannelBuffer buf,
HttpMessage message) |
static long |
HttpHeaders.getContentLength(HttpMessage message)
Returns the length of the content.
|
static long |
HttpHeaders.getContentLength(HttpMessage message,
long defaultValue)
Returns the length of the content.
|
static String |
HttpHeaders.getHeader(HttpMessage message,
String name)
Returns the header value with the specified header name.
|
static String |
HttpHeaders.getHeader(HttpMessage message,
String name,
String defaultValue)
Returns the header value with the specified header name.
|
static String |
HttpHeaders.getHost(HttpMessage message)
Returns the value of the
"Host" header. |
static String |
HttpHeaders.getHost(HttpMessage message,
String defaultValue)
Returns the value of the
"Host" header. |
static int |
HttpHeaders.getIntHeader(HttpMessage message,
String name)
Returns the integer header value with the specified header name.
|
static int |
HttpHeaders.getIntHeader(HttpMessage message,
String name,
int defaultValue)
Returns the integer header value with the specified header name.
|
static boolean |
HttpHeaders.is100ContinueExpected(HttpMessage message)
Returns
true if and only if the specified message contains the
"Expect: 100-continue" header. |
protected boolean |
HttpMessageDecoder.isContentAlwaysEmpty(HttpMessage msg) |
static boolean |
HttpHeaders.isKeepAlive(HttpMessage message)
Returns
true if and only if the connection can remain open and
thus 'kept alive'. |
protected abstract EncoderEmbedder<ChannelBuffer> |
HttpContentEncoder.newContentEncoder(HttpMessage msg,
String acceptEncoding)
Returns a new
EncoderEmbedder that encodes the HTTP message
content. |
protected EncoderEmbedder<ChannelBuffer> |
HttpContentCompressor.newContentEncoder(HttpMessage msg,
String acceptEncoding) |
static void |
HttpHeaders.set100ContinueExpected(HttpMessage message)
Sets the
"Expect: 100-continue" header to the specified message. |
static void |
HttpHeaders.set100ContinueExpected(HttpMessage message,
boolean set)
Sets or removes the
"Expect: 100-continue" header to / from the
specified message. |
static void |
HttpHeaders.setContentLength(HttpMessage message,
long length)
Sets the
"Content-Length" header. |
static void |
HttpHeaders.setHeader(HttpMessage message,
String name,
Iterable<?> values)
Sets a new header with the specified name and values.
|
static void |
HttpHeaders.setHeader(HttpMessage message,
String name,
Object value)
Sets a new header with the specified name and value.
|
static void |
HttpHeaders.setHost(HttpMessage message,
String value)
Sets the
"Host" header. |
static void |
HttpHeaders.setIntHeader(HttpMessage message,
String name,
int value)
Sets a new integer header with the specified name and value.
|
static void |
HttpHeaders.setIntHeader(HttpMessage message,
String name,
Iterable<Integer> values)
Sets a new integer header with the specified name and values.
|
static void |
HttpHeaders.setKeepAlive(HttpMessage message,
boolean keepAlive)
Sets the value of the
"Connection" header depending on the
protocol version of the specified message. |
Modifier and Type | Method and Description |
---|---|
protected HttpMessage |
RtspResponseDecoder.createMessage(String[] initialLine) |
protected HttpMessage |
RtspRequestDecoder.createMessage(String[] initialLine) |
Modifier and Type | Method and Description |
---|---|
protected void |
RtspResponseEncoder.encodeInitialLine(ChannelBuffer buf,
HttpMessage message) |
protected void |
RtspRequestEncoder.encodeInitialLine(ChannelBuffer buf,
HttpMessage message) |
protected boolean |
RtspMessageDecoder.isContentAlwaysEmpty(HttpMessage msg) |
Modifier and Type | Method and Description |
---|---|
protected HttpMessage |
SpdyHttpDecoder.getMessage(int streamId) |
protected HttpMessage |
SpdyHttpDecoder.putMessage(int streamId,
HttpMessage message) |
protected HttpMessage |
SpdyHttpDecoder.removeMessage(int streamId) |
Modifier and Type | Method and Description |
---|---|
static int |
SpdyHttpHeaders.getAssociatedToStreamId(HttpMessage message)
Returns the value of the
"X-SPDY-Associated-To-Stream-ID" header. |
static int |
SpdyHttpHeaders.getAssociatedToStreamID(HttpMessage message)
Deprecated.
Use
SpdyHttpHeaders.getAssociatedToStreamId(HttpMessage) instead. |
static byte |
SpdyHttpHeaders.getPriority(HttpMessage message)
Returns the value of the
"X-SPDY-Priority" header. |
static String |
SpdyHttpHeaders.getScheme(HttpMessage message)
Returns the value of the
"X-SPDY-Scheme" header. |
static int |
SpdyHttpHeaders.getStreamId(HttpMessage message)
Returns the value of the
"X-SPDY-Stream-ID" header. |
static int |
SpdyHttpHeaders.getStreamID(HttpMessage message)
Deprecated.
Use
SpdyHttpHeaders.getStreamId(HttpMessage) instead. |
static String |
SpdyHttpHeaders.getUrl(HttpMessage message)
Returns the value of the
"X-SPDY-URL" header. |
protected HttpMessage |
SpdyHttpDecoder.putMessage(int streamId,
HttpMessage message) |
static void |
SpdyHttpHeaders.removeAssociatedToStreamId(HttpMessage message)
Removes the
"X-SPDY-Associated-To-Stream-ID" header. |
static void |
SpdyHttpHeaders.removeAssociatedToStreamID(HttpMessage message)
Deprecated.
|
static void |
SpdyHttpHeaders.removePriority(HttpMessage message)
Removes the
"X-SPDY-Priority" header. |
static void |
SpdyHttpHeaders.removeScheme(HttpMessage message)
Removes the
"X-SPDY-Scheme" header. |
static void |
SpdyHttpHeaders.removeStreamId(HttpMessage message)
Removes the
"X-SPDY-Stream-ID" header. |
static void |
SpdyHttpHeaders.removeStreamID(HttpMessage message)
Deprecated.
Use
SpdyHttpHeaders.removeStreamId(HttpMessage) instead. |
static void |
SpdyHttpHeaders.removeUrl(HttpMessage message)
Removes the
"X-SPDY-URL" header. |
static void |
SpdyHttpHeaders.setAssociatedToStreamId(HttpMessage message,
int associatedToStreamId)
Sets the
"X-SPDY-Associated-To-Stream-ID" header. |
static void |
SpdyHttpHeaders.setAssociatedToStreamID(HttpMessage message,
int associatedToStreamId)
Deprecated.
|
static void |
SpdyHttpHeaders.setPriority(HttpMessage message,
byte priority)
Sets the
"X-SPDY-Priority" header. |
static void |
SpdyHttpHeaders.setScheme(HttpMessage message,
String scheme)
Sets the
"X-SPDY-Scheme" header. |
static void |
SpdyHttpHeaders.setStreamId(HttpMessage message,
int streamId)
Sets the
"X-SPDY-Stream-ID" header. |
static void |
SpdyHttpHeaders.setStreamID(HttpMessage message,
int streamId)
Deprecated.
Use
SpdyHttpHeaders.setStreamId(HttpMessage, int) instead. |
static void |
SpdyHttpHeaders.setUrl(HttpMessage message,
String url)
Sets the
"X-SPDY-URL" header. |
Constructor and Description |
---|
SpdyHttpDecoder(int version,
int maxContentLength,
Map<Integer,HttpMessage> messageMap)
Creates a new instance with the specified parameters.
|
Copyright © 2008-2014 The Netty Project. All Rights Reserved.