@Authors(value="Nikolche Mihajlovski")
@Since(value="2.0.0")
public interface ProtocolContext<T>
| Modifier and Type | Method and Description |
|---|---|
String |
address() |
long |
async() |
T |
close() |
T |
closeIf(boolean condition) |
long |
connId() |
InetSocketAddress |
getAddress() |
long |
handle() |
RapidoidHelper |
helper() |
org.rapidoid.buffer.Buf |
input() |
boolean |
isAsync() |
boolean |
isClosed() |
boolean |
isClosing() |
boolean |
isInitial() |
void |
log(String msg) |
boolean |
onSameThread() |
org.rapidoid.buffer.Buf |
output() |
OutputStream |
outputStream() |
String |
readln() |
String |
readN(int count) |
long |
requestId() |
void |
resume(long connId,
long handle,
AsyncLogic asyncLogic) |
T |
send() |
void |
setRequest(IRequest request) |
ConnState |
state() |
void |
waitUntilClosing() |
T |
write(byte[] bytes) |
T |
write(byte[] bytes,
int offset,
int length) |
T |
write(ByteBuffer buf) |
T |
write(File file) |
T |
write(String s) |
T |
writeJSON(Object value) |
T |
writeln(String s) |
String address()
InetSocketAddress getAddress()
long connId()
boolean isAsync()
T close()
T closeIf(boolean condition)
boolean isClosing()
boolean isClosed()
void waitUntilClosing()
void log(String msg)
long requestId()
void setRequest(IRequest request)
long handle()
boolean onSameThread()
boolean isInitial()
T write(byte[] bytes)
T write(byte[] bytes, int offset, int length)
T write(ByteBuffer buf)
T send()
long async()
void resume(long connId,
long handle,
AsyncLogic asyncLogic)
String readln()
String readN(int count)
org.rapidoid.buffer.Buf input()
org.rapidoid.buffer.Buf output()
OutputStream outputStream()
RapidoidHelper helper()
ConnState state()
Copyright © 2014–2017 Nikolche Mihajlovski and contributors. All rights reserved.