Package org.hcjf.io.net.http.pipeline
Class MultipartHttpPipelineResponse
- java.lang.Object
-
- org.hcjf.io.net.http.HttpPackage
-
- org.hcjf.io.net.http.HttpResponse
-
- org.hcjf.io.net.http.pipeline.HttpPipelineResponse
-
- org.hcjf.io.net.http.pipeline.MultipartHttpPipelineResponse
-
public abstract class MultipartHttpPipelineResponse extends HttpPipelineResponse
- Author:
- javaito
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hcjf.io.net.http.pipeline.HttpPipelineResponse
HttpPipelineResponse.StreamingPackage
-
Nested classes/interfaces inherited from class org.hcjf.io.net.http.HttpPackage
HttpPackage.ChunkedDecoderLayer, HttpPackage.HttpProtocol, HttpPackage.TransferDecodingLayerInterface
-
-
Field Summary
-
Fields inherited from class org.hcjf.io.net.http.HttpPackage
HTTP_CONTEXT_SEPARATOR, HTTP_FIELD_ASSIGNATION, HTTP_FIELD_SEPARATOR, HTTP_FIELD_START, LINE_FIELD_SEPARATOR, STRING_LINE_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description MultipartHttpPipelineResponse(int mainBufferSize, int bufferSize, java.lang.String boundary)
-
Method Summary
Modifier and Type Method Description protected intwrap(java.nio.ByteBuffer result, HttpPipelineResponse.StreamingPackage streamingPackage, int size)This method wrap the byte with the encoding protocol.-
Methods inherited from class org.hcjf.io.net.http.pipeline.HttpPipelineResponse
getMainBuffer, getReadCounter, isFirstRead, onEnd, onStart, read, readPipeline
-
Methods inherited from class org.hcjf.io.net.http.HttpResponse
getProtocolHeader, getReasonPhrase, getResponseCode, processBody, processFirstLine, setReasonPhrase, setResponseCode, toString
-
Methods inherited from class org.hcjf.io.net.http.HttpPackage
addCookie, addData, addHeader, bodyDone, containsCookie, containsHeader, getBody, getCookie, getCookies, getHeader, getHeaders, getHttpVersion, getProtocol, isComplete, setBody, setHttpVersion, setProtocol, trimBody
-
-
-
-
Method Detail
-
wrap
protected int wrap(java.nio.ByteBuffer result, HttpPipelineResponse.StreamingPackage streamingPackage, int size)Description copied from class:HttpPipelineResponseThis method wrap the byte with the encoding protocol.- Overrides:
wrapin classHttpPipelineResponse- Parameters:
result- In this instance of the byte buffer, this method must put the byte to wrap the source data and the source data.streamingPackage- All the bytes read from the application source.size- Size of the buffer used to read the application source.- Returns:
- Byte array wrapped.
-
-