|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.web.connector.grizzly.handlers.NoParsingHandler
public class NoParsingHandler
This Handler 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.enterprise.web.connector.grizzly.Handler |
|---|
BREAK, CONTINUE, HEADERS_PARSED, REQUEST_BUFFERED, REQUEST_LINE_PARSED, RESPONSE_PROCEEDED |
| Constructor Summary | |
|---|---|
NoParsingHandler()
|
|
| Method Summary | |
|---|---|
protected void |
addToCache(Request request)
|
void |
attachChannel(SocketChannel socketChannel)
Attach a SocketChannel to this object. |
protected boolean |
canCache(Request request,
int handlerCode)
|
protected int |
findBytes(ByteChunk bc,
byte[] b)
Specialized utility method: find a sequence of lower case bytes inside a ByteChunk. |
protected String |
getDocRoot(Request request)
|
protected byte[] |
getFullResourcePath(Request request)
|
protected MimeHeaders |
getHeaders(Request request)
|
protected String |
getServletName(Request request)
|
protected String |
getUri(Request request)
|
int |
handle(Request request,
int handlerCode)
Intercept the request and decide if we cache the static resource. |
protected boolean |
isXpoweredBy(Request request)
|
| 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 NoParsingHandler()
| Method Detail |
|---|
public void attachChannel(SocketChannel socketChannel)
SocketChannel to this object.
attachChannel in interface Handler<Request>
public int handle(Request request,
int handlerCode)
throws IOException
handle in interface Handler<Request>IOExceptionprotected byte[] getFullResourcePath(Request request)
protected String getUri(Request request)
protected boolean canCache(Request request,
int handlerCode)
protected void addToCache(Request request)
protected boolean isXpoweredBy(Request request)
protected MimeHeaders getHeaders(Request request)
protected String getServletName(Request request)
protected String getDocRoot(Request request)
protected int findBytes(ByteChunk bc,
byte[] b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||