|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.engine.tool.ContentTool
public class ContentTool
A request context tool acting as a content holder.
| Constructor Summary | |
|---|---|
ContentTool()
Constructs a new content. |
|
| Method Summary | |
|---|---|
Content |
clear()
Clears the content. |
Object |
clone()
|
void |
dispose()
Disposes the object by setting its disposed flag. |
void |
failed(ContentProcessingEvent event)
Notifies the object that its processing has failed. |
void |
finished(ContentProcessingEvent event)
Notifies the object that its processing has finished. |
CharSequence |
get()
Gets the content. |
String |
getTarget()
The the current content processing target. |
String |
getTargetEncoding()
The the content processing target encoding. |
Writer |
getTargetWriter()
Gets the content processing target writer. |
void |
render(File file,
String encoding)
Renders the contents of the specified file. |
void |
render(InputStream input,
String encoding)
Renders the contents of the specified stream. |
void |
render(URL url,
String encoding)
Renders the contents of the specified URL. |
CharSequence |
set(CharSequence content)
Sets the content. |
void |
started(ContentProcessingEvent event)
Notifies the object that its processing has started. |
String |
toString()
Converts the tool into a string. |
| Methods inherited from class org.norther.tammi.spray.engine.tool.ContextTool |
|---|
getFilter, getFilterChain, getFilterKey, getPrincipal, getRequest, getResponse, isFilterChanged |
| Methods inherited from class org.norther.tammi.spray.engine.tool.GlobalTool |
|---|
getContext, getContextToolFilter, getMBeanServer, getName, 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 ContentTool()
| Method Detail |
|---|
public Object clone()
clone in class GlobalToolpublic void dispose()
RecyclableSupport
dispose in interface Recyclabledispose in class ContextToolpublic void started(ContentProcessingEvent event)
ContentProcessingListener
started in interface ContentProcessingListenerevent - the processing event.public void finished(ContentProcessingEvent event)
ContentProcessingListener
finished in interface ContentProcessingListenerevent - the processing event.public void failed(ContentProcessingEvent event)
ContentProcessingListener
failed in interface ContentProcessingListenerevent - the processing event.public CharSequence get()
Content
get in interface Contentpublic CharSequence set(CharSequence content)
Content
set in interface Contentcontent - the content.
public Content clear()
Content
clear in interface Contentpublic String toString()
GlobalTool
toString in interface ContenttoString in class GlobalToolpublic String getTarget()
Content
getTarget in interface Contentpublic String getTargetEncoding()
Content
getTargetEncoding in interface Contentpublic Writer getTargetWriter()
Content
getTargetWriter in interface Content
public void render(File file,
String encoding)
file - the file.encoding - the encoding.
public void render(URL url,
String encoding)
url - the URL.encoding - the encoding.
public void render(InputStream input,
String encoding)
input - the stream.encoding - the encoding.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||