public abstract class AbstractHTTP1OutputStream extends HTTPOutputStream
clientMode, closed, commited, info, log| 构造器和说明 |
|---|
AbstractHTTP1OutputStream(MetaData info,
boolean clientMode) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
commit() |
protected void |
commit(ByteBuffer data) |
protected HttpGenerator.Result |
generate(MetaData info,
ByteBuffer header,
ByteBuffer chunk,
ByteBuffer content,
boolean last) |
protected abstract void |
generateHTTPMessageExceptionally(HttpGenerator.Result generatorResult,
HttpGenerator.State generatorState) |
protected abstract void |
generateHTTPMessageSuccessfully() |
protected abstract ByteBuffer |
getHeaderByteBuffer() |
protected abstract HttpGenerator |
getHttpGenerator() |
protected abstract Session |
getSession() |
void |
write(ByteBuffer data) |
void |
writeWithContentLength(ByteBuffer data) |
void |
writeWithContentLength(ByteBuffer[] data) |
isClosed, isCommited, write, writeflush, writepublic AbstractHTTP1OutputStream(MetaData info, boolean clientMode)
public void writeWithContentLength(ByteBuffer[] data) throws IOException
writeWithContentLength 在类中 HTTPOutputStreamIOExceptionpublic void writeWithContentLength(ByteBuffer data) throws IOException
writeWithContentLength 在类中 HTTPOutputStreamIOExceptionpublic void commit()
throws IOException
commit 在类中 HTTPOutputStreamIOExceptionprotected void commit(ByteBuffer data) throws IOException
IOExceptionpublic void write(ByteBuffer data) throws IOException
write 在类中 HTTPOutputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionprotected HttpGenerator.Result generate(MetaData info, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, boolean last) throws IOException
IOExceptionprotected abstract ByteBuffer getHeaderByteBuffer()
protected abstract Session getSession()
protected abstract HttpGenerator getHttpGenerator()
protected abstract void generateHTTPMessageSuccessfully()
protected abstract void generateHTTPMessageExceptionally(HttpGenerator.Result generatorResult, HttpGenerator.State generatorState)
Copyright © 2016. All rights reserved.