org.apache.coyote.http11.upgrade
Class AbstractProcessor<S>
java.lang.Object
org.apache.coyote.http11.upgrade.AbstractProcessor<S>
- All Implemented Interfaces:
- WebConnection, Processor<S>
- Direct Known Subclasses:
- AprProcessor, BioProcessor, NioProcessor
public abstract class AbstractProcessor<S>
- extends Object
- implements Processor<S>, WebConnection
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sm
protected static final StringManager sm
AbstractProcessor
protected AbstractProcessor(HttpUpgradeHandler httpUpgradeHandler,
AbstractServletInputStream upgradeServletInputStream,
AbstractServletOutputStream upgradeServletOutputStream)
getLog
protected abstract Log getLog()
close
public void close()
throws Exception
- Description copied from interface:
WebConnection
- The Servlet 3.1 interface extends AutoCloseable but that is not available
in Java 6 so this is the single method from that interface.
- Specified by:
close
in interface WebConnection
- Throws:
Exception
getInputStream
public AbstractServletInputStream getInputStream()
throws IOException
- Description copied from interface:
WebConnection
- Provides access to the
AbstractServletInputStream
for reading
data from the client.
- Specified by:
getInputStream
in interface WebConnection
- Throws:
IOException
getOutputStream
public AbstractServletOutputStream getOutputStream()
throws IOException
- Description copied from interface:
WebConnection
- Provides access to the
AbstractServletOutputStream
for writing
data to the client.
- Specified by:
getOutputStream
in interface WebConnection
- Throws:
IOException
isUpgrade
public final boolean isUpgrade()
- Specified by:
isUpgrade
in interface Processor<S>
getHttpUpgradeHandler
public HttpUpgradeHandler getHttpUpgradeHandler()
- Specified by:
getHttpUpgradeHandler
in interface Processor<S>
upgradeDispatch
public final AbstractEndpoint.Handler.SocketState upgradeDispatch(SocketStatus status)
throws IOException
- Specified by:
upgradeDispatch
in interface Processor<S>
- Throws:
IOException
recycle
public final void recycle(boolean socketClosing)
- Specified by:
recycle
in interface Processor<S>
getUpgradeInbound
@Deprecated
public UpgradeInbound getUpgradeInbound()
- Deprecated.
- Specified by:
getUpgradeInbound
in interface Processor<S>
upgradeDispatch
public AbstractEndpoint.Handler.SocketState upgradeDispatch()
throws IOException
- Specified by:
upgradeDispatch
in interface Processor<S>
- Throws:
IOException
getExecutor
public final Executor getExecutor()
- Specified by:
getExecutor
in interface Processor<S>
process
public final AbstractEndpoint.Handler.SocketState process(SocketWrapper<S> socketWrapper)
throws IOException
- Specified by:
process
in interface Processor<S>
- Throws:
IOException
event
public final AbstractEndpoint.Handler.SocketState event(SocketStatus status)
throws IOException
- Specified by:
event
in interface Processor<S>
- Throws:
IOException
asyncDispatch
public final AbstractEndpoint.Handler.SocketState asyncDispatch(SocketStatus status)
- Specified by:
asyncDispatch
in interface Processor<S>
asyncPostProcess
public final AbstractEndpoint.Handler.SocketState asyncPostProcess()
- Specified by:
asyncPostProcess
in interface Processor<S>
isComet
public final boolean isComet()
- Specified by:
isComet
in interface Processor<S>
isAsync
public final boolean isAsync()
- Specified by:
isAsync
in interface Processor<S>
getRequest
public final Request getRequest()
- Specified by:
getRequest
in interface Processor<S>
setSslSupport
public final void setSslSupport(SSLSupport sslSupport)
- Specified by:
setSslSupport
in interface Processor<S>
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.