Package com.linkedin.alpini.netty4.misc
Class BasicFullHttpRequest
java.lang.Object
io.netty.handler.codec.http.DefaultHttpObject
io.netty.handler.codec.http.DefaultHttpMessage
io.netty.handler.codec.http.DefaultHttpRequest
com.linkedin.alpini.netty4.misc.BasicHttpRequest
com.linkedin.alpini.netty4.misc.BasicFullHttpRequest
- All Implemented Interfaces:
BasicRequest,io.netty.buffer.ByteBufHolder,io.netty.handler.codec.DecoderResultProvider,io.netty.handler.codec.http.FullHttpMessage,io.netty.handler.codec.http.FullHttpRequest,io.netty.handler.codec.http.HttpContent,io.netty.handler.codec.http.HttpMessage,io.netty.handler.codec.http.HttpObject,io.netty.handler.codec.http.HttpRequest,io.netty.handler.codec.http.LastHttpContent,io.netty.util.AttributeMap,io.netty.util.ReferenceCounted,Cloneable
- Direct Known Subclasses:
Http1FullRequest
public class BasicFullHttpRequest
extends BasicHttpRequest
implements io.netty.handler.codec.http.FullHttpRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.netty.handler.codec.http.HttpHeadersFields inherited from interface io.netty.handler.codec.http.LastHttpContent
EMPTY_LAST_CONTENT -
Constructor Summary
ConstructorsConstructorDescriptionBasicFullHttpRequest(io.netty.handler.codec.http.FullHttpRequest request) BasicFullHttpRequest(io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeader, io.netty.buffer.ByteBuf content) BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, boolean validateHeaders, long requestTimestamp, long requestNanos) BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, long requestTimestamp, long requestNanos) BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, io.netty.buffer.ByteBuf content, boolean validateHeaders, long requestTimestamp, long requestNanos) BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, io.netty.buffer.ByteBuf content, long requestTimestamp, long requestNanos) BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeader, UUID requestId, long requestTimestamp, long requestNanos) -
Method Summary
Modifier and TypeMethodDescriptionclone()io.netty.buffer.ByteBufcontent()copy()Construct a full copy of the request.booleaninthashCode()intrefCnt()booleanrelease()booleanrelease(int decrement) replace(io.netty.buffer.ByteBuf content) retain()retain(int increment) setMethod(io.netty.handler.codec.http.HttpMethod method) setProtocolVersion(io.netty.handler.codec.http.HttpVersion version) toString()touch()io.netty.handler.codec.http.FullHttpRequestio.netty.handler.codec.http.HttpHeadersMethods inherited from class com.linkedin.alpini.netty4.misc.BasicHttpRequest
attr, generateRequestId, getMethodName, getRequestContentLength, getRequestHeaders, getRequestId, getRequestNanos, getRequestTimestamp, hasAttr, setAttributeMapMethods inherited from class io.netty.handler.codec.http.DefaultHttpRequest
getMethod, getUri, method, uriMethods inherited from class io.netty.handler.codec.http.DefaultHttpMessage
getProtocolVersion, headers, protocolVersionMethods inherited from class io.netty.handler.codec.http.DefaultHttpObject
decoderResult, getDecoderResult, setDecoderResultMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.linkedin.alpini.base.misc.BasicRequest
getUriMethods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersionMethods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResultMethods inherited from interface io.netty.handler.codec.http.HttpRequest
getMethod, getUri, method, uri
-
Field Details
-
_trailingHeaders
protected io.netty.handler.codec.http.HttpHeaders _trailingHeaders
-
-
Constructor Details
-
BasicFullHttpRequest
public BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, long requestTimestamp, long requestNanos) -
BasicFullHttpRequest
public BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, io.netty.buffer.ByteBuf content, long requestTimestamp, long requestNanos) -
BasicFullHttpRequest
public BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, boolean validateHeaders, long requestTimestamp, long requestNanos) -
BasicFullHttpRequest
public BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, io.netty.buffer.ByteBuf content, boolean validateHeaders, long requestTimestamp, long requestNanos) -
BasicFullHttpRequest
public BasicFullHttpRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, String uri, io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeader, UUID requestId, long requestTimestamp, long requestNanos) -
BasicFullHttpRequest
public BasicFullHttpRequest(io.netty.handler.codec.http.FullHttpRequest request) -
BasicFullHttpRequest
public BasicFullHttpRequest(io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeader, io.netty.buffer.ByteBuf content)
-
-
Method Details
-
clone
- Overrides:
clonein classBasicHttpRequest
-
trailingHeaders
public io.netty.handler.codec.http.HttpHeaders trailingHeaders()- Specified by:
trailingHeadersin interfaceio.netty.handler.codec.http.LastHttpContent
-
content
public io.netty.buffer.ByteBuf content()- Specified by:
contentin interfaceio.netty.buffer.ByteBufHolder
-
refCnt
public int refCnt()- Specified by:
refCntin interfaceio.netty.util.ReferenceCounted
-
retain
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
retainin interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
retainin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
retainin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
retainin interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
retainin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
retainin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
touchin interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
touchin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
touchin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
touchin interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
touchin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
touchin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement) - Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
setProtocolVersion
- Specified by:
setProtocolVersionin interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
setProtocolVersionin interfaceio.netty.handler.codec.http.HttpMessage- Specified by:
setProtocolVersionin interfaceio.netty.handler.codec.http.HttpRequest- Overrides:
setProtocolVersionin classio.netty.handler.codec.http.DefaultHttpRequest
-
setMethod
- Specified by:
setMethodin interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
setMethodin interfaceio.netty.handler.codec.http.HttpRequest- Overrides:
setMethodin classio.netty.handler.codec.http.DefaultHttpRequest
-
setUri
- Specified by:
setUriin interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
setUriin interfaceio.netty.handler.codec.http.HttpRequest- Overrides:
setUriin classio.netty.handler.codec.http.DefaultHttpRequest
-
copy
- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder- Specified by:
copyin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
copyin interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
copyin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
copyin interfaceio.netty.handler.codec.http.LastHttpContent
-
duplicate
Description copied from class:BasicHttpRequestConstruct a full copy of the request.- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
duplicatein interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
duplicatein interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
duplicatein interfaceio.netty.handler.codec.http.HttpContent- Specified by:
duplicatein interfaceio.netty.handler.codec.http.LastHttpContent- Overrides:
duplicatein classBasicHttpRequest- Returns:
- copy of request
-
retainedDuplicate
- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.HttpContent- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.LastHttpContent
-
replace
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder- Specified by:
replacein interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
replacein interfaceio.netty.handler.codec.http.FullHttpRequest- Specified by:
replacein interfaceio.netty.handler.codec.http.HttpContent- Specified by:
replacein interfaceio.netty.handler.codec.http.LastHttpContent
-
hashCode
public int hashCode()- Overrides:
hashCodein classBasicHttpRequest
-
equals
- Overrides:
equalsin classBasicHttpRequest
-
toString
- Overrides:
toStringin classio.netty.handler.codec.http.DefaultHttpRequest
-