public abstract class AbstractProcessor<S> extends java.lang.Object implements Processor<S>, WebConnection
| Modifier and Type | Field and Description |
|---|---|
protected static StringManager |
sm |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProcessor(HttpUpgradeHandler httpUpgradeHandler,
AbstractServletInputStream upgradeServletInputStream,
AbstractServletOutputStream upgradeServletOutputStream) |
protected static final StringManager sm
protected AbstractProcessor(HttpUpgradeHandler httpUpgradeHandler, AbstractServletInputStream upgradeServletInputStream, AbstractServletOutputStream upgradeServletOutputStream)
protected abstract Log getLog()
public void close()
throws java.lang.Exception
WebConnectionclose in interface WebConnectionjava.lang.Exceptionpublic AbstractServletInputStream getInputStream() throws java.io.IOException
WebConnectionAbstractServletInputStream for reading
data from the client.getInputStream in interface WebConnectionjava.io.IOExceptionpublic AbstractServletOutputStream getOutputStream() throws java.io.IOException
WebConnectionAbstractServletOutputStream for writing
data to the client.getOutputStream in interface WebConnectionjava.io.IOExceptionpublic HttpUpgradeHandler getHttpUpgradeHandler()
getHttpUpgradeHandler in interface Processor<S>public final AbstractEndpoint.Handler.SocketState upgradeDispatch(SocketStatus status) throws java.io.IOException
upgradeDispatch in interface Processor<S>java.io.IOExceptionpublic final void recycle(boolean socketClosing)
public final AsyncStateMachine<S> getAsyncStateMachine()
getAsyncStateMachine in interface Processor<S>@Deprecated public UpgradeInbound getUpgradeInbound()
getUpgradeInbound in interface Processor<S>public AbstractEndpoint.Handler.SocketState upgradeDispatch() 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>Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.