|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.pool.RecyclableSupport org.norther.tammi.core.pool.PoolableSupport org.norther.tammi.spray.engine.tool.GlobalTool org.norther.tammi.spray.engine.tool.ContextTool org.norther.tammi.spray.media.tool.MediaTool org.norther.tammi.spray.media.tool.LinkTool org.norther.tammi.spray.template.tool.TaskTool
public class TaskTool
Extends the link tool to support links to template filters. Example:
$link.setPage("index.html").addPathInfo("hello","world")
would return
http://foo.com/template/index.html/hello/world
Based on TemplateLink
in the Apache Jakarta Turbine project.
Constructor Summary | |
---|---|
TaskTool()
Constructs a new link. |
Method Summary | |
---|---|
void |
dispose()
Disposes the object by setting its disposed flag. |
String |
getFlow()
Gets the linked flow of the request. |
protected FlowFilter |
getFlowFilter()
Gets the flow filter from the filter stack. |
String |
getForm()
Gets the linked form. |
protected FormFilter |
getFormFilter()
Gets the form filter from the filter stack. |
String |
getPage()
Gets the linked page. |
protected PageFilter |
getPageFilter()
Gets the page filter from the filter stack. |
String |
getSkin()
Gets the linked skin. |
protected SkinFilter |
getSkinFilter()
Gets the skin filter from the filter stack. |
String |
getTask()
Gets the linked task. |
protected void |
linkModified()
A callback informing subclasses about a modified link. |
TaskTool |
resetFlow()
Resets the default flow. |
TaskTool |
resetForm()
Resets the default form. |
TaskTool |
resetPage()
Resets the default page. |
TaskTool |
resetSkin()
Resets the default form. |
TaskTool |
setFlow(String flow,
Object... params)
Sets the flow of the link with parameters. |
TaskTool |
setForm(String form)
Sets the linked form. |
TaskTool |
setPage(String page)
Sets the page of the link. |
TaskTool |
setSkin(String skin)
Sets the linked skin. |
TaskTool |
setStep(int index,
Object... params)
Sets the step of the current flow of the link with parameters. |
TaskTool |
setStep(String flow,
int index,
Object... params)
Sets the flow and step of the link with parameters. |
TaskTool |
setTask(String task)
Sets the linked task. |
LinkTool |
use()
Uses the current URL. |
TaskTool |
useFlow()
Uses the current flow and step. |
TaskTool |
usePage()
Uses the current page. |
Methods inherited from class org.norther.tammi.spray.media.tool.MediaTool |
---|
toMediaFile, toURL, toURL |
Methods inherited from class org.norther.tammi.spray.engine.tool.ContextTool |
---|
getFilterChain, getFilterKey, getPrincipal, getRequest, getResponse, isFilterChanged |
Methods inherited from class org.norther.tammi.spray.engine.tool.GlobalTool |
---|
getContext, getContextToolFilter, getMBeanServer, isBound, nop, valueBound, valueUnbound |
Methods inherited from class org.norther.tammi.core.pool.PoolableSupport |
---|
disposed, recycled |
Methods inherited from class org.norther.tammi.core.pool.RecyclableSupport |
---|
isDisposed, recycle |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.norther.tammi.core.pool.Recyclable |
---|
isDisposed, recycle |
Constructor Detail |
---|
public TaskTool()
Method Detail |
---|
public void dispose()
RecyclableSupport
dispose
in interface Recyclable
dispose
in class LinkTool
public LinkTool use()
LinkTool
use
in class LinkTool
public String getTask()
public TaskTool setTask(String task)
task
- the task.
NullPointerException
- if not settable.public TaskTool resetForm()
public String getForm()
public TaskTool setForm(String form)
form
- the form.
NullPointerException
- if not settable.public TaskTool resetSkin()
public String getSkin()
public TaskTool setSkin(String skin)
skin
- the skin.
NullPointerException
- if not settable.public TaskTool resetPage()
public TaskTool usePage()
public String getPage()
public TaskTool setPage(String page)
page
- the page.
NullPointerException
- if not settable.public TaskTool resetFlow()
public TaskTool useFlow()
public String getFlow()
public TaskTool setFlow(String flow, Object... params)
flow
- the flow.params
- parameters.
NullPointerException
- if not settable.public TaskTool setStep(String flow, int index, Object... params)
flow
- the flow.index
- the step index.params
- parameters.
NullPointerException
- if not settable.public TaskTool setStep(int index, Object... params)
index
- the step index.params
- parameters.
NullPointerException
- if not settable.protected void linkModified()
LinkTool
linkModified
in class LinkTool
protected FormFilter getFormFilter()
protected SkinFilter getSkinFilter()
protected PageFilter getPageFilter()
protected FlowFilter getFlowFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |