程序包 | 说明 |
---|---|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
io.netty.handler.codec.rtsp |
An RTSP
extension based on the HTTP codec.
|
io.netty.handler.codec.spdy |
Encoder, decoder, session handler and their related message types for the SPDY protocol.
|
限定符和类型 | 类和说明 |
---|---|
class |
HttpObjectEncoder<H extends HttpMessage>
|
限定符和类型 | 接口和说明 |
---|---|
interface |
FullHttpMessage
Combines
HttpMessage and LastHttpContent into one
message. |
interface |
FullHttpRequest
Combine the
HttpRequest and FullHttpMessage , so the request is a complete HTTP
request. |
interface |
FullHttpResponse
Combination of a
HttpResponse and FullHttpMessage . |
interface |
HttpRequest
An HTTP request.
|
interface |
HttpResponse
An HTTP response.
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultFullHttpRequest
Default implementation of
FullHttpRequest . |
class |
DefaultFullHttpResponse
Default implementation of a
FullHttpResponse . |
class |
DefaultHttpMessage
The default
HttpMessage implementation. |
class |
DefaultHttpRequest
The default
HttpRequest implementation. |
class |
DefaultHttpResponse
The default
HttpResponse implementation. |
限定符和类型 | 方法和说明 |
---|---|
protected HttpMessage |
HttpResponseDecoder.createInvalidMessage() |
protected HttpMessage |
HttpRequestDecoder.createInvalidMessage() |
protected abstract HttpMessage |
HttpObjectDecoder.createInvalidMessage() |
protected HttpMessage |
HttpResponseDecoder.createMessage(java.lang.String[] initialLine) |
protected HttpMessage |
HttpRequestDecoder.createMessage(java.lang.String[] initialLine) |
protected abstract HttpMessage |
HttpObjectDecoder.createMessage(java.lang.String[] initialLine) |
HttpMessage |
HttpMessage.setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
HttpMessage |
DefaultHttpMessage.setProtocolVersion(HttpVersion version) |
限定符和类型 | 方法和说明 |
---|---|
static void |
HttpHeaders.addDateHeader(HttpMessage message,
java.lang.CharSequence name,
java.util.Date value)
Adds a new date header with the specified name and value.
|
static void |
HttpHeaders.addDateHeader(HttpMessage message,
java.lang.String name,
java.util.Date value) |
static void |
HttpHeaders.addHeader(HttpMessage message,
java.lang.CharSequence name,
java.lang.Object value)
Adds a new header with the specified name and value.
|
static void |
HttpHeaders.addHeader(HttpMessage message,
java.lang.String name,
java.lang.Object value) |
static void |
HttpHeaders.addIntHeader(HttpMessage message,
java.lang.CharSequence name,
int value)
Adds a new integer header with the specified name and value.
|
static void |
HttpHeaders.addIntHeader(HttpMessage message,
java.lang.String name,
int value) |
static void |
HttpHeaders.clearHeaders(HttpMessage message)
Removes all headers from the specified 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 java.util.Date |
HttpHeaders.getDate(HttpMessage message)
Returns the value of the
"Date" header. |
static java.util.Date |
HttpHeaders.getDate(HttpMessage message,
java.util.Date defaultValue)
Returns the value of the
"Date" header. |
static java.util.Date |
HttpHeaders.getDateHeader(HttpMessage message,
java.lang.CharSequence name)
Returns the date header value with the specified header name.
|
static java.util.Date |
HttpHeaders.getDateHeader(HttpMessage message,
java.lang.CharSequence name,
java.util.Date defaultValue)
Returns the date header value with the specified header name.
|
static java.util.Date |
HttpHeaders.getDateHeader(HttpMessage message,
java.lang.String name) |
static java.util.Date |
HttpHeaders.getDateHeader(HttpMessage message,
java.lang.String name,
java.util.Date defaultValue) |
static java.lang.String |
HttpHeaders.getHeader(HttpMessage message,
java.lang.CharSequence name)
Returns the header value with the specified header name.
|
static java.lang.String |
HttpHeaders.getHeader(HttpMessage message,
java.lang.CharSequence name,
java.lang.String defaultValue)
Returns the header value with the specified header name.
|
static java.lang.String |
HttpHeaders.getHeader(HttpMessage message,
java.lang.String name) |
static java.lang.String |
HttpHeaders.getHeader(HttpMessage message,
java.lang.String name,
java.lang.String defaultValue) |
static java.lang.String |
HttpHeaders.getHost(HttpMessage message)
Returns the value of the
"Host" header. |
static java.lang.String |
HttpHeaders.getHost(HttpMessage message,
java.lang.String defaultValue)
Returns the value of the
"Host" header. |
static int |
HttpHeaders.getIntHeader(HttpMessage message,
java.lang.CharSequence name)
Returns the integer header value with the specified header name.
|
static int |
HttpHeaders.getIntHeader(HttpMessage message,
java.lang.CharSequence name,
int defaultValue)
Returns the integer header value with the specified header name.
|
static int |
HttpHeaders.getIntHeader(HttpMessage message,
java.lang.String name) |
static int |
HttpHeaders.getIntHeader(HttpMessage message,
java.lang.String name,
int defaultValue) |
static boolean |
HttpHeaders.is100ContinueExpected(HttpMessage message)
Returns
true if and only if the specified message contains the
"Expect: 100-continue" header. |
protected boolean |
HttpObjectDecoder.isContentAlwaysEmpty(HttpMessage msg) |
static boolean |
HttpHeaders.isContentLengthSet(HttpMessage m) |
static boolean |
HttpHeaders.isKeepAlive(HttpMessage message)
Returns
true if and only if the connection can remain open and
thus 'kept alive'. |
static boolean |
HttpHeaders.isTransferEncodingChunked(HttpMessage message)
Checks to see if the transfer encoding in a specified
HttpMessage is chunked |
static void |
HttpHeaders.removeHeader(HttpMessage message,
java.lang.CharSequence name)
Removes the header with the specified name.
|
static void |
HttpHeaders.removeHeader(HttpMessage message,
java.lang.String name) |
static void |
HttpHeaders.removeTransferEncodingChunked(HttpMessage m) |
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.setDate(HttpMessage message,
java.util.Date value)
Sets the
"Date" header. |
static void |
HttpHeaders.setDateHeader(HttpMessage message,
java.lang.CharSequence name,
java.util.Date value)
Sets a new date header with the specified name and value.
|
static void |
HttpHeaders.setDateHeader(HttpMessage message,
java.lang.CharSequence name,
java.lang.Iterable<java.util.Date> values)
Sets a new date header with the specified name and values.
|
static void |
HttpHeaders.setDateHeader(HttpMessage message,
java.lang.String name,
java.util.Date value) |
static void |
HttpHeaders.setDateHeader(HttpMessage message,
java.lang.String name,
java.lang.Iterable<java.util.Date> values) |
static void |
HttpHeaders.setHeader(HttpMessage message,
java.lang.CharSequence name,
java.lang.Iterable<?> values)
Sets a new header with the specified name and values.
|
static void |
HttpHeaders.setHeader(HttpMessage message,
java.lang.CharSequence name,
java.lang.Object value)
Sets a new header with the specified name and value.
|
static void |
HttpHeaders.setHeader(HttpMessage message,
java.lang.String name,
java.lang.Iterable<?> values) |
static void |
HttpHeaders.setHeader(HttpMessage message,
java.lang.String name,
java.lang.Object value) |
static void |
HttpHeaders.setHost(HttpMessage message,
java.lang.CharSequence value)
Sets the
"Host" header. |
static void |
HttpHeaders.setHost(HttpMessage message,
java.lang.String value) |
static void |
HttpHeaders.setIntHeader(HttpMessage message,
java.lang.CharSequence name,
int value)
Sets a new integer header with the specified name and value.
|
static void |
HttpHeaders.setIntHeader(HttpMessage message,
java.lang.CharSequence name,
java.lang.Iterable<java.lang.Integer> values)
Sets a new integer header with the specified name and values.
|
static void |
HttpHeaders.setIntHeader(HttpMessage message,
java.lang.String name,
int value) |
static void |
HttpHeaders.setIntHeader(HttpMessage message,
java.lang.String name,
java.lang.Iterable<java.lang.Integer> 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. |
static void |
HttpHeaders.setTransferEncodingChunked(HttpMessage m) |
限定符和类型 | 类和说明 |
---|---|
class |
RtspObjectEncoder<H extends HttpMessage>
已过时。
Use
RtspEncoder instead. |
限定符和类型 | 方法和说明 |
---|---|
protected HttpMessage |
RtspDecoder.createInvalidMessage() |
protected HttpMessage |
RtspDecoder.createMessage(java.lang.String[] initialLine) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
RtspEncoder.encodeInitialLine(ByteBuf buf,
HttpMessage message) |
protected boolean |
RtspObjectDecoder.isContentAlwaysEmpty(HttpMessage msg)
已过时。
|
protected boolean |
RtspDecoder.isContentAlwaysEmpty(HttpMessage msg) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
SpdyHttpResponseStreamIdHandler.encode(ChannelHandlerContext ctx,
HttpMessage msg,
java.util.List<java.lang.Object> out) |
static int |
SpdyHttpHeaders.getAssociatedToStreamId(HttpMessage message)
Returns the value of the
"X-SPDY-Associated-To-Stream-ID" header. |
static byte |
SpdyHttpHeaders.getPriority(HttpMessage message)
Returns the value of the
"X-SPDY-Priority" header. |
static java.lang.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 void |
SpdyHttpHeaders.removeAssociatedToStreamId(HttpMessage message)
Removes the
"X-SPDY-Associated-To-Stream-ID" header. |
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.setAssociatedToStreamId(HttpMessage message,
int associatedToStreamId)
Sets the
"X-SPDY-Associated-To-Stream-ID" header. |
static void |
SpdyHttpHeaders.setPriority(HttpMessage message,
byte priority)
Sets the
"X-SPDY-Priority" header. |
static void |
SpdyHttpHeaders.setScheme(HttpMessage message,
java.lang.String scheme)
Sets the
"X-SPDY-Scheme" header. |
static void |
SpdyHttpHeaders.setStreamId(HttpMessage message,
int streamId)
Sets the
"X-SPDY-Stream-ID" header. |