程序包 | 说明 |
---|---|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
io.netty.handler.codec.http.multipart |
HTTP multipart support.
|
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
限定符和类型 | 接口和说明 |
---|---|
interface |
FullHttpRequest
Combine the
HttpRequest and FullHttpMessage , so the request is a complete HTTP
request. |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultFullHttpRequest
Default implementation of
FullHttpRequest . |
class |
DefaultHttpRequest
The default
HttpRequest implementation. |
限定符和类型 | 方法和说明 |
---|---|
HttpRequest |
HttpRequest.setMethod(HttpMethod method)
Set the
HttpMethod of this HttpRequest . |
HttpRequest |
DefaultHttpRequest.setMethod(HttpMethod method) |
HttpRequest |
HttpRequest.setProtocolVersion(HttpVersion version) |
HttpRequest |
DefaultHttpRequest.setProtocolVersion(HttpVersion version) |
HttpRequest |
HttpRequest.setUri(java.lang.String uri)
Set the requested URI (or alternatively, path)
|
HttpRequest |
DefaultHttpRequest.setUri(java.lang.String uri) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
HttpContentEncoder.decode(ChannelHandlerContext ctx,
HttpRequest msg,
java.util.List<java.lang.Object> out) |
protected void |
HttpRequestEncoder.encodeInitialLine(ByteBuf buf,
HttpRequest request) |
限定符和类型 | 方法和说明 |
---|---|
HttpRequest |
HttpPostRequestEncoder.finalizeRequest()
Finalize the request by preparing the Header in the request and returns the request ready to be sent.
|
限定符和类型 | 方法和说明 |
---|---|
void |
HttpDataFactory.cleanRequestHttpDatas(HttpRequest request)
Remove all InterfaceHttpData from virtual File storage from clean list for the request
|
void |
DefaultHttpDataFactory.cleanRequestHttpDatas(HttpRequest request) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request,
java.lang.String name) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request,
java.lang.String name) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request,
java.lang.String name,
java.lang.String value) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request,
java.lang.String name,
java.lang.String value) |
FileUpload |
HttpDataFactory.createFileUpload(HttpRequest request,
java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.lang.String contentTransferEncoding,
java.nio.charset.Charset charset,
long size) |
FileUpload |
DefaultHttpDataFactory.createFileUpload(HttpRequest request,
java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.lang.String contentTransferEncoding,
java.nio.charset.Charset charset,
long size) |
static boolean |
HttpPostRequestDecoder.isMultipart(HttpRequest request)
Check if the given request is a multipart request
|
void |
HttpDataFactory.removeHttpDataFromClean(HttpRequest request,
InterfaceHttpData data)
Remove the given InterfaceHttpData from clean list (will not delete the file, except if the file
is still a temporary one as setup at construction)
|
void |
DefaultHttpDataFactory.removeHttpDataFromClean(HttpRequest request,
InterfaceHttpData data) |
限定符和类型 | 方法和说明 |
---|---|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel,
HttpRequest req)
Performs the opening handshake.
|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel,
HttpRequest req,
HttpHeaders responseHeaders,
ChannelPromise promise)
Performs the opening handshake
When call this method you MUST NOT retain the
HttpRequest which is passed in. |
WebSocketServerHandshaker |
WebSocketServerHandshakerFactory.newHandshaker(HttpRequest req)
Instances a new handshaker
|