|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.handler.TextRequestHandler
public class TextRequestHandler
Request target that responds by sending its string property.
Constructor Summary | |
---|---|
TextRequestHandler(java.lang.String string)
Creates a string request target with content type text/plain and default charset
(usually UTF-8) |
|
TextRequestHandler(java.lang.String contentType,
java.lang.String encoding,
java.lang.String string)
Constructor |
Method Summary | |
---|---|
void |
detach(IRequestCycle requestCycle)
This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done. |
java.lang.String |
getString()
Gets the string property. |
void |
respond(IRequestCycle requestCycle)
Responds by sending the string property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextRequestHandler(java.lang.String string)
text/plain
and default charset
(usually UTF-8)
string
- the string for the responsepublic TextRequestHandler(java.lang.String contentType, java.lang.String encoding, java.lang.String string)
contentType
- content type of the data the string represents, e.g.
text/html; charset=utf-8
encoding
- charset to usestring
- string for the responseMethod Detail |
---|
public void respond(IRequestCycle requestCycle)
respond
in interface IRequestHandler
requestCycle
- the current request cycleIRequestHandler.respond(org.apache.wicket.request.IRequestCycle)
public void detach(IRequestCycle requestCycle)
detach
in interface IRequestHandler
requestCycle
- the current request cyclepublic java.lang.String getString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |