org.eclipse.jetty.http.ssl
Class SslSelectChannelEndPoint

java.lang.Object
  extended by org.eclipse.jetty.io.nio.ChannelEndPoint
      extended by org.eclipse.jetty.io.nio.SelectChannelEndPoint
          extended by org.eclipse.jetty.http.ssl.SslSelectChannelEndPoint
All Implemented Interfaces:
java.lang.Runnable, AsyncEndPoint, EndPoint

public class SslSelectChannelEndPoint
extends SelectChannelEndPoint

SslSelectChannelEndPoint

A SelectChannelEndPoint that uses an SSLEngine to handle an SSL connection.

There is a named logger "org.eclipse.jetty.http.ssl"


Field Summary
 
Fields inherited from class org.eclipse.jetty.io.nio.ChannelEndPoint
_channel, _gather2, _local, _remote, _socket
 
Constructor Summary
SslSelectChannelEndPoint(Buffers buffers, java.nio.channels.SocketChannel channel, SelectorManager.SelectSet selectSet, java.nio.channels.SelectionKey key, javax.net.ssl.SSLEngine engine)
           
 
Method Summary
 void close()
           
protected  void doIdleExpired()
           
 void dump()
           
 int fill(Buffer buffer)
          Fill the buffer with unencrypted bytes.
 void flush()
           
 int flush(Buffer buffer)
           
 int flush(Buffer header, Buffer buffer, Buffer trailer)
           
 javax.net.ssl.SSLEngine getSSLEngine()
           
protected  void idleExpired()
           
 boolean isBufferingInput()
           
 boolean isBufferingOutput()
           
 boolean isBufferred()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.jetty.io.nio.SelectChannelEndPoint
blockReadable, blockWritable, cancelIdle, dispatch, getConnection, getSelectManager, getSelectSet, getTimeoutTask, isReadyForDispatch, run, schedule, scheduleIdle, scheduleWrite, setWritable
 
Methods inherited from class org.eclipse.jetty.io.nio.ChannelEndPoint
getChannel, getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.io.EndPoint
getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isOpen
 

Constructor Detail

SslSelectChannelEndPoint

public SslSelectChannelEndPoint(Buffers buffers,
                                java.nio.channels.SocketChannel channel,
                                SelectorManager.SelectSet selectSet,
                                java.nio.channels.SelectionKey key,
                                javax.net.ssl.SSLEngine engine)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

dump

public void dump()

idleExpired

protected void idleExpired()
Overrides:
idleExpired in class SelectChannelEndPoint

doIdleExpired

protected void doIdleExpired()

close

public void close()
           throws java.io.IOException
Specified by:
close in interface EndPoint
Overrides:
close in class SelectChannelEndPoint
Throws:
java.io.IOException

fill

public int fill(Buffer buffer)
         throws java.io.IOException
Fill the buffer with unencrypted bytes. Called by a Parser instance when more data is needed to continue parsing a request or a response.

Specified by:
fill in interface EndPoint
Overrides:
fill in class ChannelEndPoint
Throws:
java.io.IOException

flush

public int flush(Buffer buffer)
          throws java.io.IOException
Specified by:
flush in interface EndPoint
Overrides:
flush in class SelectChannelEndPoint
Throws:
java.io.IOException

flush

public int flush(Buffer header,
                 Buffer buffer,
                 Buffer trailer)
          throws java.io.IOException
Specified by:
flush in interface EndPoint
Overrides:
flush in class SelectChannelEndPoint
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface EndPoint
Overrides:
flush in class ChannelEndPoint
Throws:
java.io.IOException

isBufferingInput

public boolean isBufferingInput()
Specified by:
isBufferingInput in interface EndPoint
Overrides:
isBufferingInput in class ChannelEndPoint

isBufferingOutput

public boolean isBufferingOutput()
Specified by:
isBufferingOutput in interface EndPoint
Overrides:
isBufferingOutput in class ChannelEndPoint

isBufferred

public boolean isBufferred()
Specified by:
isBufferred in interface EndPoint
Overrides:
isBufferred in class ChannelEndPoint

getSSLEngine

public javax.net.ssl.SSLEngine getSSLEngine()

toString

public java.lang.String toString()
Overrides:
toString in class SelectChannelEndPoint


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.