All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.webmacro.resource.HandlerProvider

java.lang.Object
   |
   +----org.webmacro.resource.HandlerProvider

public final class HandlerProvider
extends Object
implements ResourceProvider
This is the canonical provider for mapping URLs to Handlers. The reactor will request that the "handler" provider return a Handler object when supplied with a URL.

You could implement your own version of this class to return handlers based on whatever criteria you wanted.


Variable Index

 o TYPE
Constant that contains the Log and ResourceProvider Type served by this class.

Constructor Index

 o HandlerProvider()

Method Index

 o destroy()
Unimplemented / does nothing
 o getTypes()
We serve up "handler" type resources
 o init(ResourceBroker)
Resource broker will want to init me
 o resourceCreate(CreateResourceEvent)
Unimplemented / does nothing
 o resourceDelete(ResourceEvent)
Unimplemented / does nothing
 o resourceExpireTime()
Cache created handlers for up to 20 minutes.
 o resourceRequest(RequestResourceEvent)
Request a handler, the supplied name is ScriptName
 o resourceSave(ResourceEvent)
Stop the handler
 o resourceThreads()
No concurrency--all in memory operation.

Variables

 o TYPE
 public static final String TYPE
Constant that contains the Log and ResourceProvider Type served by this class.

Constructors

 o HandlerProvider
 public HandlerProvider()

Methods

 o resourceThreads
 public final int resourceThreads()
No concurrency--all in memory operation.

 o getTypes
 public final String[] getTypes()
We serve up "handler" type resources

 o resourceExpireTime
 public final int resourceExpireTime()
Cache created handlers for up to 20 minutes.

 o resourceRequest
 public final void resourceRequest(RequestResourceEvent evt)
Request a handler, the supplied name is ScriptName

 o resourceSave
 public final boolean resourceSave(ResourceEvent evt)
Stop the handler

 o destroy
 public final void destroy()
Unimplemented / does nothing

 o init
 public void init(ResourceBroker broker)
Resource broker will want to init me

 o resourceCreate
 public final void resourceCreate(CreateResourceEvent evt)
Unimplemented / does nothing

 o resourceDelete
 public final boolean resourceDelete(ResourceEvent evt)
Unimplemented / does nothing


All Packages  Class Hierarchy  This Package  Previous  Next  Index