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 |
|---|---|
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.
|
String |
getString()
Gets the string property.
|
void |
respond(IRequestCycle requestCycle)
Responds by sending the string property.
|
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 IRequestHandlerrequestCycle - the current request cycleIRequestHandler.respond(org.apache.wicket.request.IRequestCycle)public void detach(IRequestCycle requestCycle)
detach in interface IRequestHandlerrequestCycle - the current request cyclepublic String getString()
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.