|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.tcp.StaticResourcesAdapter
com.sun.grizzly.tcp.DynamicContentAdapter
GrizzlyAdapter instead.
public abstract class DynamicContentAdapter
Abstract Adapter that contains all the common behaviour of the Adapter implementation for standalone usage as well as embedded use.
| Nested Class Summary | |
|---|---|
class |
DynamicContentAdapter.RequestTupple
Deprecated. Statefull token used to share information with the Containers. |
| Field Summary | |
|---|---|
protected java.lang.String |
contextRoot
Deprecated. |
protected static java.lang.String |
RFC_2616_FORMAT
Deprecated. |
| Fields inherited from class com.sun.grizzly.tcp.StaticResourcesAdapter |
|---|
cache, commitErrorResponse, fileFolders, logger, resourcesContextPath |
| Constructor Summary | |
|---|---|
DynamicContentAdapter()
Deprecated. |
|
DynamicContentAdapter(java.lang.String publicDirectory)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
afterService(Request req,
Response res)
Deprecated. Finish the Response and recycle the Request and the
Response. |
java.lang.String |
getContextRoot()
Deprecated. |
protected abstract int |
getTokenID()
Deprecated. |
void |
service(Request req,
Response res)
Deprecated. Based on the Request URI, try to map the file from the rootFolder, and send it synchronously using send file. |
protected abstract void |
serviceDynamicContent(Request req,
Response res)
Deprecated. |
void |
setContextRoot(java.lang.String contextRoot)
Deprecated. |
| Methods inherited from class com.sun.grizzly.tcp.StaticResourcesAdapter |
|---|
addRootFolder, customizedErrorPage, getDefaultContentType, getResourcesContextPath, getRootFolder, getRootFolders, initWebDir, isUseSendFile, service, setDefaultContentType, setLogger, setResourcesContextPath, setRootFolder, setUseSendFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String RFC_2616_FORMAT
protected java.lang.String contextRoot
| Constructor Detail |
|---|
public DynamicContentAdapter()
public DynamicContentAdapter(java.lang.String publicDirectory)
| Method Detail |
|---|
protected abstract int getTokenID()
protected abstract void serviceDynamicContent(Request req,
Response res)
throws java.io.IOException
java.io.IOException
public void afterService(Request req,
Response res)
throws java.lang.Exception
StaticResourcesAdapterResponse and recycle the Request and the
Response. If the StaticResourcesAdapter.commitErrorResponse
is set to false, this method does nothing.
afterService in interface AdapterafterService in class StaticResourcesAdapterreq - Requestres - Response
java.lang.Exception
public void service(Request req,
Response res)
throws java.lang.Exception
StaticResourcesAdapterRequest URI, try to map the file from the rootFolder, and send it synchronously using send file.
service in interface Adapterservice in class StaticResourcesAdapterreq - the Requestres - the Response
java.lang.Exception - if an error happens during handling of
the request. Common errors are:
public void setContextRoot(java.lang.String contextRoot)
public java.lang.String getContextRoot()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||