java.lang.Object
org.apache.wicket.request.handler.TextRequestHandler
- All Implemented Interfaces:
IRequestHandler
Request target that responds by sending its string property.
- Author:
- igor.vaynberg, Eelco Hillenius
-
Constructor Summary
ConstructorDescriptionTextRequestHandler
(String string) Creates a string request target with content typetext/plain
and default charset (usually UTF-8)TextRequestHandler
(String contentType, String encoding, String string) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets 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
Methods inherited from interface org.apache.wicket.request.IRequestHandler
detach
-
Constructor Details
-
TextRequestHandler
Creates a string request target with content typetext/plain
and default charset (usually UTF-8)- Parameters:
string
- the string for the response
-
TextRequestHandler
Constructor- Parameters:
contentType
- content type of the data the string represents, e.g.text/html; charset=utf-8
encoding
- charset to usestring
- string for the response
-
-
Method Details
-
respond
Responds by sending the string property.- Specified by:
respond
in interfaceIRequestHandler
- Parameters:
requestCycle
- the current request cycle- See Also:
-
getString
Gets the string property.- Returns:
- the string property
-