|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.Response
org.apache.wicket.response.StringResponse
public class StringResponse
Response object that writes to a StringWriter. If the StringResponse is later converted to a String via toString(), the output which was written to the StringResponse will be returned as a String.
| Field Summary | |
|---|---|
protected AppendingStringBuffer |
out
StringWriter to write to |
| Constructor Summary | |
|---|---|
StringResponse()
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
encodeURL(java.lang.CharSequence url)
Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. |
java.lang.CharSequence |
getBuffer()
|
java.lang.Object |
getContainerResponse()
Provides access to the low-level container response object that implementaion of this Response delegate to. |
void |
reset()
Called when the Response needs to reset itself. |
java.lang.String |
toString()
|
void |
write(byte[] array)
Writes the buffer to output. |
void |
write(java.lang.CharSequence string)
Writes the CharSequence to output. |
| Methods inherited from class org.apache.wicket.request.Response |
|---|
close |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final AppendingStringBuffer out
| Constructor Detail |
|---|
public StringResponse()
| Method Detail |
|---|
public void write(java.lang.CharSequence string)
ResponseCharSequence to output.
write in class ResponseResponse.write(CharSequence)public void reset()
Response
reset in class ResponseResponse.reset()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.CharSequence getBuffer()
CharSequencepublic void write(byte[] array)
Response
write in class Responseorg.apache.wicket.request.Response#getOutputStream()public java.lang.String encodeURL(java.lang.CharSequence url)
Response
encodeURL in class Responsepublic java.lang.Object getContainerResponse()
ResponseResponse delegate to. This allows users to access features provided by the container
response but not by generalized Wicket Response objects.
getContainerResponse in class Responsenull if none
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||