Class TextRequestHandler
- java.lang.Object
-
- org.apache.wicket.request.handler.TextRequestHandler
-
- All Implemented Interfaces:
IRequestHandler
public class TextRequestHandler extends Object implements IRequestHandler
Request target that responds by sending its string property.- Author:
- igor.vaynberg, Eelco Hillenius
-
-
Constructor Summary
Constructors Constructor Description TextRequestHandler(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
Methods inherited from interface org.apache.wicket.request.IRequestHandler
detach
-
-
-
-
Constructor Detail
-
TextRequestHandler
public TextRequestHandler(String string)
Creates a string request target with content typetext/plain
and default charset (usually UTF-8)- Parameters:
string
- the string for the response
-
TextRequestHandler
public TextRequestHandler(String contentType, String encoding, String string)
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 Detail
-
respond
public void respond(IRequestCycle requestCycle)
Responds by sending the string property.- Specified by:
respond
in interfaceIRequestHandler
- Parameters:
requestCycle
- the current request cycle- See Also:
IRequestHandler.respond(org.apache.wicket.request.IRequestCycle)
-
-