|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.standalone.StaticHandler
public class StaticHandler
This Interceptor is invoked after the request line has been parsed.
| Field Summary | |
|---|---|
protected FileCache |
fileCache
The FileCache mechanism used to cache static resources. |
protected SocketChannel |
socketChannel
The SocketChannel used to send a static resources. |
| Fields inherited from interface com.sun.grizzly.util.Interceptor |
|---|
BREAK, CONTINUE, REQUEST_BUFFERED, REQUEST_LINE_PARSED, RESPONSE_PROCEEDED |
| Constructor Summary | |
|---|---|
StaticHandler()
|
|
| Method Summary | |
|---|---|
void |
attachChannel(SocketChannel socketChannel)
Attach a SocketChannel to this object. |
protected int |
findBytes(ByteChunk bc,
byte[] b)
Specialized utility method: find a sequence of lower case bytes inside a ByteChunk. |
int |
handle(Request req,
int handlerCode)
Intercept the request and decide if we cache the static resource. |
protected boolean |
keepAlive(Request request)
Get the keep-alive header. |
void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SocketChannel socketChannel
SocketChannel used to send a static resources.
protected FileCache fileCache
| Constructor Detail |
|---|
public StaticHandler()
| Method Detail |
|---|
public void attachChannel(SocketChannel socketChannel)
SocketChannel to this object.
attachChannel in interface Interceptor<Request,SocketChannel>
public int handle(Request req,
int handlerCode)
throws IOException
handle in interface Interceptor<Request,SocketChannel>IOExceptionprotected boolean keepAlive(Request request)
protected int findBytes(ByteChunk bc,
byte[] b)
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||