com.sun.grizzly.standalone
Class DynamicContentAdapter

java.lang.Object
  extended by com.sun.grizzly.standalone.StaticResourcesAdapter
      extended by com.sun.grizzly.standalone.DynamicContentAdapter
All Implemented Interfaces:
Adapter

Deprecated.

public abstract class DynamicContentAdapter
extends StaticResourcesAdapter

Abstract Adapter that contains all the common behaviour of the Adapter implmentation for standalone usage as well as embedded use. This class is deprecated and moved under http-utils/src/main/java/com/sun/grizzly/tcp/

Author:
Jerome Dochez, Jean-Francois Arcand

Nested Class Summary
 class DynamicContentAdapter.RequestTupple
          Deprecated. Statefull token used to share information with the Containers.
 
Field Summary
protected  String contextRoot
          Deprecated.  
protected static String RFC_2616_FORMAT
          Deprecated.  
 
Constructor Summary
DynamicContentAdapter(String publicDirectory)
          Deprecated.  
 
Method Summary
 void afterService(Request req, Response res)
          Deprecated.  
 void fireAdapterEvent(String type, Object data)
          Deprecated.  
 String getContextRoot()
          Deprecated.  
protected abstract  int getTokenID()
          Deprecated.  
 void service(Request req, Response res)
          Deprecated.  
protected abstract  void serviceDynamicContent(Request req, Response res)
          Deprecated.  
 void setContextRoot(String contextRoot)
          Deprecated.  
 
Methods inherited from class com.sun.grizzly.standalone.StaticResourcesAdapter
getRootFolder, service, setRootFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RFC_2616_FORMAT

protected static final String RFC_2616_FORMAT
Deprecated. 
See Also:
Constant Field Values

contextRoot

protected String contextRoot
Deprecated. 
Constructor Detail

DynamicContentAdapter

public DynamicContentAdapter(String publicDirectory)
Deprecated. 
Method Detail

getTokenID

protected abstract int getTokenID()
Deprecated. 

serviceDynamicContent

protected abstract void serviceDynamicContent(Request req,
                                              Response res)
                                       throws IOException
Deprecated. 
Throws:
IOException

afterService

public void afterService(Request req,
                         Response res)
                  throws Exception
Deprecated. 
Specified by:
afterService in interface Adapter
Overrides:
afterService in class StaticResourcesAdapter
Throws:
Exception

fireAdapterEvent

public void fireAdapterEvent(String type,
                             Object data)
Deprecated. 
Overrides:
fireAdapterEvent in class StaticResourcesAdapter

service

public void service(Request req,
                    Response res)
             throws Exception
Deprecated. 
Specified by:
service in interface Adapter
Overrides:
service in class StaticResourcesAdapter
Throws:
Exception

setContextRoot

public void setContextRoot(String contextRoot)
Deprecated. 

getContextRoot

public String getContextRoot()
Deprecated. 


Copyright © 2009 SUN Microsystems. All Rights Reserved.