@Authors(value="Nikolche Mihajlovski") @Since(value="2.0.0") public abstract class ExchangeProtocol<T extends DefaultExchange<?>> extends org.rapidoid.RapidoidThing implements Protocol, CtxListener
AMP, ANY, ASTERISK, BYTE_0, COL, CR, CR_, CR_LF, CR_LF_CR_LF, DELETE, EMPTY_ARRAY, EMPTY_STRING_ARRAY, EQ, F, GET, GET_OR_POST, HEAD, HTTP_VERBS, LAST_6, LF, LF_, LF_LF, MALFORMED_CHAR, NOT_FOUND, OPTIONS, PATCH, POST, PUT, SEMI_COL, SEPARATOR_LINE, SPACE, SPACE_, T, TRACE, UTF8_2_BYTES_LEAD, UTF8_3_BYTES_LEAD, UTF8_4_BYTES_LEAD, UTF8_CONTINUATION| Constructor and Description |
|---|
ExchangeProtocol(Class<T> exchangeType,
boolean useExchangePool) |
| Modifier and Type | Method and Description |
|---|---|
void |
onDone(Channel conn,
Object tag) |
protected org.rapidoid.pool.Pool<T> |
pool(RapidoidHelper helper) |
void |
process(Channel ctx) |
protected abstract void |
process(Channel ctx,
T exchange) |
public void onDone(Channel conn, Object tag)
onDone in interface CtxListenerprotected org.rapidoid.pool.Pool<T> pool(RapidoidHelper helper)
Copyright © 2014–2017 Nikolche Mihajlovski and contributors. All rights reserved.