Package com.linkedin.alpini.netty4.misc
Class BasicFullHttpMultiPartRequest
- 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.BasicFullHttpMultiPartRequest
-
- All Implemented Interfaces:
BasicRequest
,FullHttpMultiPartRequest
,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
,java.lang.Cloneable
,java.lang.Iterable<FullHttpMultiPart>
public class BasicFullHttpMultiPartRequest extends BasicHttpRequest implements FullHttpMultiPartRequest
Created by acurtis on 3/27/17.
-
-
Constructor Summary
Constructors Constructor Description BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, boolean validateHeaders, long requestTimestamp, long requestNanos)
BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, long requestTimestamp, long requestNanos)
BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, java.util.Collection<FullHttpMultiPart> content, boolean validateHeaders, long requestTimestamp, long requestNanos)
BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, java.util.Collection<FullHttpMultiPart> content, long requestTimestamp, long requestNanos)
BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, java.util.Collection<FullHttpMultiPart> content, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeader, java.util.UUID requestId, long requestTimestamp, long requestNanos)
-
Method Summary
-
Methods inherited from class com.linkedin.alpini.netty4.misc.BasicHttpRequest
attr, clone, generateRequestId, getMethodName, getRequestContentLength, getRequestHeaders, getRequestId, getRequestNanos, getRequestTimestamp, hasAttr, setAttributeMap
-
Methods inherited from class io.netty.handler.codec.http.DefaultHttpRequest
getMethod, getUri, method, toString, uri
-
Methods inherited from class io.netty.handler.codec.http.DefaultHttpMessage
getProtocolVersion, headers, protocolVersion
-
Methods inherited from class io.netty.handler.codec.http.DefaultHttpObject
decoderResult, getDecoderResult, setDecoderResult
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.linkedin.alpini.base.misc.BasicRequest
getUri
-
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersion
-
-
-
-
Constructor Detail
-
BasicFullHttpMultiPartRequest
public BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, long requestTimestamp, long requestNanos)
-
BasicFullHttpMultiPartRequest
public BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, java.util.Collection<FullHttpMultiPart> content, long requestTimestamp, long requestNanos)
-
BasicFullHttpMultiPartRequest
public BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, boolean validateHeaders, long requestTimestamp, long requestNanos)
-
BasicFullHttpMultiPartRequest
public BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, java.util.Collection<FullHttpMultiPart> content, boolean validateHeaders, long requestTimestamp, long requestNanos)
-
BasicFullHttpMultiPartRequest
public BasicFullHttpMultiPartRequest(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, java.util.Collection<FullHttpMultiPart> content, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeader, java.util.UUID requestId, long requestTimestamp, long requestNanos)
-
-
Method Detail
-
trailingHeaders
public io.netty.handler.codec.http.HttpHeaders trailingHeaders()
- Specified by:
trailingHeaders
in interfaceio.netty.handler.codec.http.LastHttpContent
-
content
public io.netty.buffer.ByteBuf content()
- Specified by:
content
in interfaceio.netty.buffer.ByteBufHolder
-
copy
public BasicFullHttpMultiPartRequest copy()
- Specified by:
copy
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
copy
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
copy
in interfaceFullHttpMultiPartRequest
- Specified by:
copy
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
copy
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
copy
in interfaceio.netty.handler.codec.http.LastHttpContent
-
duplicate
public BasicFullHttpMultiPartRequest duplicate()
Description copied from class:BasicHttpRequest
Construct a full copy of the request.- Specified by:
duplicate
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
duplicate
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
duplicate
in interfaceFullHttpMultiPartRequest
- Specified by:
duplicate
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
duplicate
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
duplicate
in interfaceio.netty.handler.codec.http.LastHttpContent
- Overrides:
duplicate
in classBasicHttpRequest
- Returns:
- copy of request
-
retainedDuplicate
public BasicFullHttpMultiPartRequest retainedDuplicate()
- Specified by:
retainedDuplicate
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retainedDuplicate
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
retainedDuplicate
in interfaceFullHttpMultiPartRequest
- Specified by:
retainedDuplicate
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
retainedDuplicate
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
retainedDuplicate
in interfaceio.netty.handler.codec.http.LastHttpContent
-
replace
public BasicFullHttpMultiPartRequest replace(io.netty.buffer.ByteBuf content)
- Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
replace
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
replace
in interfaceFullHttpMultiPartRequest
- Specified by:
replace
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
replace
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
replace
in interfaceio.netty.handler.codec.http.LastHttpContent
-
replace
public BasicFullHttpMultiPartRequest replace(java.util.Collection<FullHttpMultiPart> parts)
- Specified by:
replace
in interfaceFullHttpMultiPartRequest
-
retain
public BasicFullHttpMultiPartRequest retain(int increment)
- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
retain
in interfaceFullHttpMultiPartRequest
- Specified by:
retain
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
retain
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
retain
in interfaceio.netty.handler.codec.http.LastHttpContent
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
refCnt
public int refCnt()
- Specified by:
refCnt
in interfaceio.netty.util.ReferenceCounted
-
retain
public BasicFullHttpMultiPartRequest retain()
- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
retain
in interfaceFullHttpMultiPartRequest
- Specified by:
retain
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
retain
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
retain
in interfaceio.netty.handler.codec.http.LastHttpContent
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
touch
public BasicFullHttpMultiPartRequest touch()
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
touch
in interfaceFullHttpMultiPartRequest
- Specified by:
touch
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
touch
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
touch
in interfaceio.netty.handler.codec.http.LastHttpContent
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
touch
public BasicFullHttpMultiPartRequest touch(java.lang.Object hint)
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
touch
in interfaceFullHttpMultiPartRequest
- Specified by:
touch
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
touch
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
touch
in interfaceio.netty.handler.codec.http.LastHttpContent
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()
- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement)
- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
iterator
public java.util.Iterator<FullHttpMultiPart> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<FullHttpMultiPart>
-
setMethod
public BasicFullHttpMultiPartRequest setMethod(io.netty.handler.codec.http.HttpMethod method)
- Specified by:
setMethod
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
setMethod
in interfaceio.netty.handler.codec.http.HttpRequest
- Overrides:
setMethod
in classio.netty.handler.codec.http.DefaultHttpRequest
-
setUri
public BasicFullHttpMultiPartRequest setUri(java.lang.String uri)
- Specified by:
setUri
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
setUri
in interfaceio.netty.handler.codec.http.HttpRequest
- Overrides:
setUri
in classio.netty.handler.codec.http.DefaultHttpRequest
-
setProtocolVersion
public BasicFullHttpMultiPartRequest setProtocolVersion(io.netty.handler.codec.http.HttpVersion version)
- Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.HttpMessage
- Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.HttpRequest
- Overrides:
setProtocolVersion
in classio.netty.handler.codec.http.DefaultHttpRequest
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classBasicHttpRequest
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBasicHttpRequest
-
-