Class OfficeFloorSocketWrapper

java.lang.Object
org.apache.tomcat.util.net.SocketWrapperBase<Void>
net.officefloor.servlet.tomcat.OfficeFloorSocketWrapper

public class OfficeFloorSocketWrapper extends org.apache.tomcat.util.net.SocketWrapperBase<Void>
OfficeFloor SocketWrapperBase.
Author:
Daniel Sagenschneider
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.tomcat.util.net.SocketWrapperBase

    org.apache.tomcat.util.net.SocketWrapperBase.BlockingMode, org.apache.tomcat.util.net.SocketWrapperBase.CompletionCheck, org.apache.tomcat.util.net.SocketWrapperBase.CompletionHandlerCall, org.apache.tomcat.util.net.SocketWrapperBase.CompletionState, org.apache.tomcat.util.net.SocketWrapperBase.OperationState<A extends Object>, org.apache.tomcat.util.net.SocketWrapperBase.VectoredIOCompletionHandler<A extends Object>
  • Field Summary

    Fields inherited from class org.apache.tomcat.util.net.SocketWrapperBase

    bufferedWriteSize, closed, COMPLETE_READ, COMPLETE_READ_WITH_COMPLETION, COMPLETE_WRITE, COMPLETE_WRITE_WITH_COMPLETION, localAddr, localName, localPort, nonBlockingWriteBuffer, previousIOException, READ_DATA, readOperation, readPending, remoteAddr, remoteHost, remotePort, servletConnection, sm, sniHostName, socketBufferHandler, writeOperation, writePending
  • Constructor Summary

    Constructors
    Constructor
    Description
    OfficeFloorSocketWrapper(org.apache.tomcat.util.net.AbstractEndpoint<Void,?> endpoint)
    Instantiate.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.tomcat.util.net.SendfileDataBase
    createSendfileData(String filename, long pos, long length)
     
    void
    doClientAuth(org.apache.tomcat.util.net.SSLSupport sslSupport)
     
    protected void
     
    protected void
    doWrite(boolean block, ByteBuffer from)
     
    protected boolean
     
    org.apache.tomcat.util.net.SSLSupport
     
    boolean
     
    protected <A> org.apache.tomcat.util.net.SocketWrapperBase<Void>.org.apache.tomcat.util.net.SocketWrapperBase.OperationState<A>
    newOperationState(boolean arg0, ByteBuffer[] arg1, int arg2, int arg3, org.apache.tomcat.util.net.SocketWrapperBase.BlockingMode arg4, long arg5, TimeUnit arg6, A arg7, org.apache.tomcat.util.net.SocketWrapperBase.CompletionCheck arg8, CompletionHandler<Long,? super A> arg9, Semaphore arg10, org.apache.tomcat.util.net.SocketWrapperBase<Void>.org.apache.tomcat.util.net.SocketWrapperBase.VectoredIOCompletionHandler<A> arg11)
     
    Escalates that should not require direct Socket.
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    org.apache.tomcat.util.net.SendfileState
    processSendfile(org.apache.tomcat.util.net.SendfileDataBase sendfileData)
     
    int
    read(boolean block, byte[] b, int off, int len)
     
    int
    read(boolean block, ByteBuffer to)
     
    void
     
    void
     
    void
    setAppReadBufHandler(org.apache.tomcat.util.net.ApplicationBufferHandler handler)
     

    Methods inherited from class org.apache.tomcat.util.net.SocketWrapperBase

    buffersArrayHasRemaining, canWrite, checkError, close, decrementKeepAlive, doWrite, execute, flush, flushBlocking, getCurrentProcessor, getEndpoint, getError, getLocalAddr, getLocalName, getLocalPort, getLock, getNegotiatedProtocol, getReadTimeout, getRemoteAddr, getRemoteHost, getRemotePort, getServletConnection, getSniHostName, getSocket, getSocketBufferHandler, getWriteTimeout, hasAsyncIO, hasDataToRead, hasDataToWrite, hasPerOperationTimeout, isClosed, isReadPending, isReadyForWrite, isWritePending, needSemaphores, populateReadBuffer, populateReadBuffer, processSocket, read, read, read, reset, setCurrentProcessor, setError, setKeepAliveLeft, setNegotiatedProtocol, setReadTimeout, setSniHostName, setWriteTimeout, takeCurrentProcessor, toString, transfer, transfer, unRead, vectoredOperation, write, write, write, write, write, writeBlocking, writeBlocking, writeNonBlocking, writeNonBlocking, writeNonBlockingInternal

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OfficeFloorSocketWrapper

      public OfficeFloorSocketWrapper(org.apache.tomcat.util.net.AbstractEndpoint<Void,?> endpoint)
      Instantiate.
      Parameters:
      endpoint - AbstractEndpoint.
  • Method Details

    • noSocket

      public static UnsupportedOperationException noSocket()
      Escalates that should not require direct Socket.
      Returns:
      UnsupportedOperationException for failure.
    • populateRemoteHost

      protected void populateRemoteHost()
      Specified by:
      populateRemoteHost in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • populateRemoteAddr

      protected void populateRemoteAddr()
      Specified by:
      populateRemoteAddr in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • populateRemotePort

      protected void populateRemotePort()
      Specified by:
      populateRemotePort in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • populateLocalName

      protected void populateLocalName()
      Specified by:
      populateLocalName in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • populateLocalAddr

      protected void populateLocalAddr()
      Specified by:
      populateLocalAddr in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • populateLocalPort

      protected void populateLocalPort()
      Specified by:
      populateLocalPort in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • read

      public int read(boolean block, byte[] b, int off, int len) throws IOException
      Specified by:
      read in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
      Throws:
      IOException
    • read

      public int read(boolean block, ByteBuffer to) throws IOException
      Specified by:
      read in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
      Throws:
      IOException
    • isReadyForRead

      public boolean isReadyForRead() throws IOException
      Specified by:
      isReadyForRead in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
      Throws:
      IOException
    • setAppReadBufHandler

      public void setAppReadBufHandler(org.apache.tomcat.util.net.ApplicationBufferHandler handler)
      Specified by:
      setAppReadBufHandler in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • doClose

      protected void doClose()
      Specified by:
      doClose in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • doWrite

      protected void doWrite(boolean block, ByteBuffer from) throws IOException
      Specified by:
      doWrite in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
      Throws:
      IOException
    • flushNonBlocking

      protected boolean flushNonBlocking() throws IOException
      Specified by:
      flushNonBlocking in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
      Throws:
      IOException
    • getSslSupport

      public org.apache.tomcat.util.net.SSLSupport getSslSupport()
      Specified by:
      getSslSupport in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • registerReadInterest

      public void registerReadInterest()
      Specified by:
      registerReadInterest in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • registerWriteInterest

      public void registerWriteInterest()
      Specified by:
      registerWriteInterest in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • createSendfileData

      public org.apache.tomcat.util.net.SendfileDataBase createSendfileData(String filename, long pos, long length)
      Specified by:
      createSendfileData in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • processSendfile

      public org.apache.tomcat.util.net.SendfileState processSendfile(org.apache.tomcat.util.net.SendfileDataBase sendfileData)
      Specified by:
      processSendfile in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
    • doClientAuth

      public void doClientAuth(org.apache.tomcat.util.net.SSLSupport sslSupport) throws IOException
      Specified by:
      doClientAuth in class org.apache.tomcat.util.net.SocketWrapperBase<Void>
      Throws:
      IOException
    • newOperationState

      protected <A> org.apache.tomcat.util.net.SocketWrapperBase<Void>.org.apache.tomcat.util.net.SocketWrapperBase.OperationState<A> newOperationState(boolean arg0, ByteBuffer[] arg1, int arg2, int arg3, org.apache.tomcat.util.net.SocketWrapperBase.BlockingMode arg4, long arg5, TimeUnit arg6, A arg7, org.apache.tomcat.util.net.SocketWrapperBase.CompletionCheck arg8, CompletionHandler<Long,? super A> arg9, Semaphore arg10, org.apache.tomcat.util.net.SocketWrapperBase<Void>.org.apache.tomcat.util.net.SocketWrapperBase.VectoredIOCompletionHandler<A> arg11)
      Specified by:
      newOperationState in class org.apache.tomcat.util.net.SocketWrapperBase<Void>