public abstract class HttpObjectEncoder extends Object
HttpObject into a protocol-specific object and writes it into a Channel.| Constructor and Description |
|---|
HttpObjectEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract io.netty.channel.Channel |
channel() |
void |
close()
Releases the resources related with this encoder and fails any unfinished writes.
|
protected abstract void |
doClose() |
protected abstract io.netty.channel.ChannelFuture |
doWriteData(int id,
int streamId,
HttpData data,
boolean endStream) |
protected abstract io.netty.channel.ChannelFuture |
doWriteHeaders(int id,
int streamId,
HttpHeaders headers,
boolean endStream) |
protected abstract io.netty.channel.ChannelFuture |
doWriteReset(int id,
int streamId,
io.netty.handler.codec.http2.Http2Error error) |
protected io.netty.channel.EventLoop |
eventLoop() |
abstract boolean |
isWritable(int id,
int streamId)
Returns
true if the specified id and streamId is writable. |
protected io.netty.channel.ChannelFuture |
newClosedSessionFuture() |
protected io.netty.channel.ChannelFuture |
newFailedFuture(Throwable cause) |
protected io.netty.buffer.ByteBuf |
toByteBuf(HttpData data) |
io.netty.channel.ChannelFuture |
writeData(int id,
int streamId,
HttpData data,
boolean endStream)
Writes an
HttpData. |
io.netty.channel.ChannelFuture |
writeHeaders(int id,
int streamId,
HttpHeaders headers,
boolean endStream)
Writes an
HttpHeaders. |
io.netty.channel.ChannelFuture |
writeReset(int id,
int streamId,
io.netty.handler.codec.http2.Http2Error error)
Resets the specified stream.
|
protected abstract io.netty.channel.Channel channel()
protected io.netty.channel.EventLoop eventLoop()
public final io.netty.channel.ChannelFuture writeHeaders(int id,
int streamId,
HttpHeaders headers,
boolean endStream)
HttpHeaders.protected abstract io.netty.channel.ChannelFuture doWriteHeaders(int id,
int streamId,
HttpHeaders headers,
boolean endStream)
public final io.netty.channel.ChannelFuture writeData(int id,
int streamId,
HttpData data,
boolean endStream)
HttpData.protected abstract io.netty.channel.ChannelFuture doWriteData(int id,
int streamId,
HttpData data,
boolean endStream)
public final io.netty.channel.ChannelFuture writeReset(int id,
int streamId,
io.netty.handler.codec.http2.Http2Error error)
protected abstract io.netty.channel.ChannelFuture doWriteReset(int id,
int streamId,
io.netty.handler.codec.http2.Http2Error error)
public void close()
public abstract boolean isWritable(int id,
int streamId)
true if the specified id and streamId is writable.protected abstract void doClose()
protected final io.netty.channel.ChannelFuture newClosedSessionFuture()
protected final io.netty.channel.ChannelFuture newFailedFuture(Throwable cause)
protected final io.netty.buffer.ByteBuf toByteBuf(HttpData data)
Copyright © 2020 LeanCloud. All rights reserved.