org.webmacro.servlet
Class URLTool

java.lang.Object
  extended byorg.webmacro.servlet.URLTool
All Implemented Interfaces:
ContextTool

public class URLTool
extends java.lang.Object
implements ContextTool

Provide Template with access to url handing routines

Author:
Sebastian Kanthak (mailto:skanthak@muehlheim.de)

Nested Class Summary
 class URLTool.URLToolImpl
           
 
Constructor Summary
URLTool()
           
 
Method Summary
 void destroy(java.lang.Object o)
          At the end of processing this method will be called to return the object generated by init(), in case it needs to be recycled or otherwise cleaned up.
 java.lang.Object init(Context context)
          A new tool object will be instantiated per-request by calling this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLTool

public URLTool()
Method Detail

init

public java.lang.Object init(Context context)
                      throws PropertyException
Description copied from interface: ContextTool
A new tool object will be instantiated per-request by calling this method. A ContextTool is effectively a factory used to create objects for use in templates. Some tools may simply return themselves from this method; others may instantiate new objects to hold the per-request state.

Specified by:
init in interface ContextTool
Throws:
PropertyException

destroy

public void destroy(java.lang.Object o)
Description copied from interface: ContextTool
At the end of processing this method will be called to return the object generated by init(), in case it needs to be recycled or otherwise cleaned up.

Specified by:
destroy in interface ContextTool