@Deprecated public abstract class UpgradeProcessor<S> extends java.lang.Object implements Processor<S>
| Modifier and Type | Field and Description |
|---|---|
protected static StringManager |
sm
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
protected |
UpgradeProcessor(UpgradeInbound upgradeInbound)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractEndpoint.Handler.SocketState |
asyncDispatch(SocketStatus status)
Deprecated.
|
AbstractEndpoint.Handler.SocketState |
asyncPostProcess()
Deprecated.
|
void |
errorDispatch()
Deprecated.
|
AbstractEndpoint.Handler.SocketState |
event(SocketStatus status)
Deprecated.
|
abstract void |
flush()
Deprecated.
|
AsyncStateMachine<S> |
getAsyncStateMachine()
Deprecated.
|
java.util.concurrent.Executor |
getExecutor()
Deprecated.
|
HttpUpgradeHandler |
getHttpUpgradeHandler()
Deprecated.
|
Request |
getRequest()
Deprecated.
|
UpgradeInbound |
getUpgradeInbound()
Deprecated.
|
boolean |
isAsync()
Deprecated.
|
boolean |
isComet()
Deprecated.
|
boolean |
isUpgrade()
Deprecated.
|
AbstractEndpoint.Handler.SocketState |
process(SocketWrapper<S> socketWrapper)
Deprecated.
|
abstract int |
read()
Deprecated.
This is always a blocking read of a single byte.
|
abstract int |
read(boolean block,
byte[] bytes,
int off,
int len)
Deprecated.
Read up to len bytes from the input in either blocking or non-blocking
mode (where non-blocking is supported).
|
void |
recycle(boolean socketClosing)
Deprecated.
|
void |
setSslSupport(SSLSupport sslSupport)
Deprecated.
|
AbstractEndpoint.Handler.SocketState |
upgradeDispatch()
Deprecated.
|
AbstractEndpoint.Handler.SocketState |
upgradeDispatch(SocketStatus status)
Deprecated.
|
abstract void |
write(byte[] b,
int off,
int len)
Deprecated.
|
abstract void |
write(int b)
Deprecated.
|
protected static final StringManager sm
protected UpgradeProcessor(UpgradeInbound upgradeInbound)
public abstract void flush()
throws java.io.IOException
java.io.IOExceptionpublic abstract void write(int b)
throws java.io.IOException
java.io.IOExceptionpublic abstract void write(byte[] b,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionpublic abstract int read()
throws java.io.IOException
java.io.IOException - If a problem occurs trying to read from the inputpublic abstract int read(boolean block,
byte[] bytes,
int off,
int len)
throws java.io.IOException
block - bytes - off - len - java.io.IOException - If a problem occurs trying to read from the inputpublic final UpgradeInbound getUpgradeInbound()
getUpgradeInbound in interface Processor<S>public final AbstractEndpoint.Handler.SocketState upgradeDispatch() throws java.io.IOException
upgradeDispatch in interface Processor<S>java.io.IOExceptionpublic final void recycle(boolean socketClosing)
public HttpUpgradeHandler getHttpUpgradeHandler()
getHttpUpgradeHandler in interface Processor<S>public AbstractEndpoint.Handler.SocketState upgradeDispatch(SocketStatus status) throws java.io.IOException
upgradeDispatch in interface Processor<S>java.io.IOExceptionpublic final java.util.concurrent.Executor getExecutor()
getExecutor in interface Processor<S>public final AbstractEndpoint.Handler.SocketState process(SocketWrapper<S> socketWrapper) throws java.io.IOException
public final AbstractEndpoint.Handler.SocketState event(SocketStatus status) throws java.io.IOException
public final AbstractEndpoint.Handler.SocketState asyncDispatch(SocketStatus status)
asyncDispatch in interface Processor<S>public void errorDispatch()
errorDispatch in interface Processor<S>public final AbstractEndpoint.Handler.SocketState asyncPostProcess()
asyncPostProcess in interface Processor<S>public final Request getRequest()
getRequest in interface Processor<S>public final void setSslSupport(SSLSupport sslSupport)
setSslSupport in interface Processor<S>public final AsyncStateMachine<S> getAsyncStateMachine()
getAsyncStateMachine in interface Processor<S>Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.