public class TextRequestHandler extends Object implements IRequestHandler
Constructor and Description |
---|
TextRequestHandler(String string)
Creates a string request target with content type
text/plain and default charset
(usually UTF-8) |
TextRequestHandler(String contentType,
String encoding,
String string)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getString()
Gets the string property.
|
void |
respond(IRequestCycle requestCycle)
Responds by sending the string property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
detach
public TextRequestHandler(String string)
text/plain
and default charset
(usually UTF-8)string
- the string for the responsepublic void respond(IRequestCycle requestCycle)
respond
in interface IRequestHandler
requestCycle
- the current request cycleIRequestHandler.respond(org.apache.wicket.request.IRequestCycle)
public String getString()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.