com.sun.enterprise.v3.services.impl
Class ServiceInitializerFilter

java.lang.Object
  extended by org.glassfish.grizzly.filterchain.BaseFilter
      extended by com.sun.enterprise.v3.services.impl.ServiceInitializerFilter
All Implemented Interfaces:
org.glassfish.grizzly.filterchain.Filter

public class ServiceInitializerFilter
extends org.glassfish.grizzly.filterchain.BaseFilter

The Filter implementation, which lazily initializes custom service on the first accepted connection and passes connection there.

Author:
Vijay Ramachandran

Field Summary
protected  Logger logger
           
 
Constructor Summary
ServiceInitializerFilter(ServiceInitializerListener listener, org.jvnet.hk2.component.Habitat habitat, Logger logger)
           
 
Method Summary
 org.glassfish.grizzly.filterchain.NextAction handleAccept(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
           
 
Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
createContext, exceptionOccurred, getFilterChain, getIndex, handleClose, handleConnect, handleEvent, handleRead, handleWrite, onAdded, onFilterChainChanged, onRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Logger logger
Constructor Detail

ServiceInitializerFilter

public ServiceInitializerFilter(ServiceInitializerListener listener,
                                org.jvnet.hk2.component.Habitat habitat,
                                Logger logger)
Method Detail

handleAccept

public org.glassfish.grizzly.filterchain.NextAction handleAccept(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
                                                          throws IOException
Specified by:
handleAccept in interface org.glassfish.grizzly.filterchain.Filter
Overrides:
handleAccept in class org.glassfish.grizzly.filterchain.BaseFilter
Throws:
IOException


Copyright © 2012. All Rights Reserved.