com.sun.grizzly.jruby
Class RailsAdapter

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

public class RailsAdapter
extends DynamicContentAdapter
implements Adapter

Adapter implementation that bridge JRuby on Rails with Grizzly.

Author:
TAKAI Naoto, Jean-Francois Arcand, Pramod Gopinath

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.tcp.DynamicContentAdapter
DynamicContentAdapter.RequestTupple
 
Field Summary
 
Fields inherited from class com.sun.grizzly.tcp.DynamicContentAdapter
contextRoot, RFC_2616_FORMAT
 
Fields inherited from class com.sun.grizzly.tcp.StaticResourcesAdapter
commitErrorResponse, logger
 
Fields inherited from interface com.sun.grizzly.tcp.Adapter
CONNECTION_PROCESSING_COMPLETED, CONNECTION_PROCESSING_STARTED, REQUEST_PROCESSING_COMPLETED, REQUEST_PROCESSING_STARTED
 
Constructor Summary
RailsAdapter(RubyObjectPool pool)
           
RailsAdapter(RubyObjectPool pool, RubyRuntimeAsyncFilter asyncFilter)
           
 
Method Summary
protected  int getTokenID()
           
protected  void serviceDynamicContent(Request req, Response res)
           
 
Methods inherited from class com.sun.grizzly.tcp.DynamicContentAdapter
afterService, fireAdapterEvent, getContextRoot, service, setContextRoot
 
Methods inherited from class com.sun.grizzly.tcp.StaticResourcesAdapter
customizedErrorPage, getLogger, getRootFolder, service, setLogger, setRootFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.grizzly.tcp.Adapter
afterService, fireAdapterEvent, service
 

Constructor Detail

RailsAdapter

public RailsAdapter(RubyObjectPool pool)

RailsAdapter

public RailsAdapter(RubyObjectPool pool,
                    RubyRuntimeAsyncFilter asyncFilter)
Method Detail

getTokenID

protected int getTokenID()
Specified by:
getTokenID in class DynamicContentAdapter

serviceDynamicContent

protected void serviceDynamicContent(Request req,
                                     Response res)
                              throws IOException
Specified by:
serviceDynamicContent in class DynamicContentAdapter
Throws:
IOException


Copyright © 2009 SUN Microsystems. All Rights Reserved.