org.mortbay.jetty.grizzly
Class GrizzlyEndPoint

java.lang.Object
  extended by org.mortbay.io.nio.ChannelEndPoint
      extended by org.mortbay.jetty.grizzly.GrizzlyEndPoint
All Implemented Interfaces:
EndPoint

public class GrizzlyEndPoint
extends ChannelEndPoint


Field Summary
protected  HttpConnection _connection
           
 
Fields inherited from class org.mortbay.io.nio.ChannelEndPoint
_channel, _gather2, _local, _remote, _socket
 
Constructor Summary
GrizzlyEndPoint(GrizzlyConnector connector, java.nio.channels.ByteChannel channel)
           
 
Method Summary
 int fill(Buffer buffer)
          Fill the buffer from the current putIndex to it's capacity from whatever byte source is backing the buffer.
 HttpConnection getHttpConnection()
           
 void handle()
           
 boolean isBlocking()
           
 boolean isComplete()
           
 boolean keepAlive()
           
 void recycle()
           
 void setChannel(java.nio.channels.ByteChannel channel)
           
 
Methods inherited from class org.mortbay.io.nio.ChannelEndPoint
blockReadable, blockWritable, close, flush, flush, flush, getChannel, getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBufferingInput, isBufferingOutput, isBufferred, isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_connection

protected HttpConnection _connection
Constructor Detail

GrizzlyEndPoint

public GrizzlyEndPoint(GrizzlyConnector connector,
                       java.nio.channels.ByteChannel channel)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

handle

public void handle()
            throws java.io.IOException
Throws:
java.io.IOException

fill

public int fill(Buffer buffer)
         throws java.io.IOException
Description copied from interface: EndPoint
Fill the buffer from the current putIndex to it's capacity from whatever byte source is backing the buffer. The putIndex is increased if bytes filled. The buffer may chose to do a compact before filling.

Specified by:
fill in interface EndPoint
Overrides:
fill in class ChannelEndPoint
Returns:
an int value indicating the number of bytes filled or -1 if EOF is reached.
Throws:
java.io.IOException

keepAlive

public boolean keepAlive()

isComplete

public boolean isComplete()

isBlocking

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

setChannel

public void setChannel(java.nio.channels.ByteChannel channel)

recycle

public void recycle()

getHttpConnection

public HttpConnection getHttpConnection()


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