org.mortbay.jetty.grizzly
Class GrizzlyEndPoint
java.lang.Object
org.mortbay.io.nio.ChannelEndPoint
org.mortbay.jetty.grizzly.GrizzlyEndPoint
- All Implemented Interfaces:
- EndPoint
public class GrizzlyEndPoint
- extends ChannelEndPoint
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 |
_connection
protected HttpConnection _connection
GrizzlyEndPoint
public GrizzlyEndPoint(GrizzlyConnector connector,
java.nio.channels.ByteChannel channel)
throws java.io.IOException
- Throws:
java.io.IOException
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.