Package io.netty5.handler.codec.http
Class DefaultFullHttpRequest
- java.lang.Object
-
- io.netty5.handler.codec.http.DefaultHttpObject
-
- io.netty5.handler.codec.http.DefaultHttpMessage
-
- io.netty5.handler.codec.http.DefaultHttpRequest
-
- io.netty5.handler.codec.http.DefaultFullHttpRequest
-
- All Implemented Interfaces:
io.netty5.buffer.api.Resource<FullHttpRequest>
,io.netty5.handler.codec.DecoderResultProvider
,FullHttpMessage<FullHttpRequest>
,FullHttpRequest
,HttpContent<FullHttpRequest>
,HttpMessage
,HttpObject
,HttpRequest
,LastHttpContent<FullHttpRequest>
,AutoCloseable
public class DefaultFullHttpRequest extends DefaultHttpRequest implements FullHttpRequest
Default implementation ofFullHttpRequest
.
-
-
Constructor Summary
Constructors Constructor Description DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty5.buffer.api.Buffer payload)
DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty5.buffer.api.Buffer payload, boolean validateHeaders)
DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty5.buffer.api.Buffer payload, HttpHeaders headers, HttpHeaders trailingHeader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(Object o)
int
hashCode()
boolean
isAccessible()
io.netty5.buffer.api.Buffer
payload()
Returns theBuffer
representing the payload of the HTTP message.io.netty5.buffer.api.Send<FullHttpRequest>
send()
FullHttpRequest
setMethod(HttpMethod method)
Set theHttpMethod
of thisHttpRequest
.FullHttpRequest
setProtocolVersion(HttpVersion version)
Set the protocol version of thisHttpMessage
FullHttpRequest
setUri(String uri)
Set the requested URI (or alternatively, path)String
toString()
FullHttpRequest
touch(Object hint)
HttpHeaders
trailingHeaders()
-
Methods inherited from class io.netty5.handler.codec.http.DefaultHttpRequest
method, uri
-
Methods inherited from class io.netty5.handler.codec.http.DefaultHttpMessage
getProtocolVersion, headers, protocolVersion
-
Methods inherited from class io.netty5.handler.codec.http.DefaultHttpObject
decoderResult, setDecoderResult
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty5.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty5.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersion
-
Methods inherited from interface io.netty5.handler.codec.http.HttpRequest
method, uri
-
-
-
-
Constructor Detail
-
DefaultFullHttpRequest
public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty5.buffer.api.Buffer payload)
-
DefaultFullHttpRequest
public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty5.buffer.api.Buffer payload, boolean validateHeaders)
-
DefaultFullHttpRequest
public DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, io.netty5.buffer.api.Buffer payload, HttpHeaders headers, HttpHeaders trailingHeader)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceio.netty5.buffer.api.Resource<FullHttpRequest>
-
isAccessible
public boolean isAccessible()
- Specified by:
isAccessible
in interfaceio.netty5.buffer.api.Resource<FullHttpRequest>
-
touch
public FullHttpRequest touch(Object hint)
- Specified by:
touch
in interfaceio.netty5.buffer.api.Resource<FullHttpRequest>
-
payload
public io.netty5.buffer.api.Buffer payload()
Description copied from interface:HttpContent
Returns theBuffer
representing the payload of the HTTP message.- Specified by:
payload
in interfaceHttpContent<FullHttpRequest>
- Returns:
- The
Buffer
representing the payload of the HTTP message.
-
send
public io.netty5.buffer.api.Send<FullHttpRequest> send()
- Specified by:
send
in interfaceio.netty5.buffer.api.Resource<FullHttpRequest>
-
trailingHeaders
public HttpHeaders trailingHeaders()
- Specified by:
trailingHeaders
in interfaceLastHttpContent<FullHttpRequest>
-
setProtocolVersion
public FullHttpRequest setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessage
Set the protocol version of thisHttpMessage
- Specified by:
setProtocolVersion
in interfaceFullHttpRequest
- Specified by:
setProtocolVersion
in interfaceHttpMessage
- Specified by:
setProtocolVersion
in interfaceHttpRequest
- Overrides:
setProtocolVersion
in classDefaultHttpRequest
-
setMethod
public FullHttpRequest setMethod(HttpMethod method)
Description copied from interface:HttpRequest
Set theHttpMethod
of thisHttpRequest
.- Specified by:
setMethod
in interfaceFullHttpRequest
- Specified by:
setMethod
in interfaceHttpRequest
- Overrides:
setMethod
in classDefaultHttpRequest
-
setUri
public FullHttpRequest setUri(String uri)
Description copied from interface:HttpRequest
Set the requested URI (or alternatively, path)- Specified by:
setUri
in interfaceFullHttpRequest
- Specified by:
setUri
in interfaceHttpRequest
- Overrides:
setUri
in classDefaultHttpRequest
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultHttpRequest
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classDefaultHttpRequest
-
toString
public String toString()
- Overrides:
toString
in classDefaultHttpRequest
-
-