org.apache.wicket.ajax
Class AbstractAjaxResponse.AjaxResponse

java.lang.Object
  extended by org.apache.wicket.request.Response
      extended by org.apache.wicket.ajax.AbstractAjaxResponse.AjaxResponse
Enclosing class:
AbstractAjaxResponse

protected static final class AbstractAjaxResponse.AjaxResponse
extends Response

Response that uses an encoder to encode its contents

Author:
Igor Vaynberg (ivaynberg)

Method Summary
 String encodeURL(CharSequence url)
           
 Object getContainerResponse()
           
 CharSequence getContents()
           
 boolean isContentsEncoded()
           
 void reset()
          Resets the response to a clean state so it can be reused to save on garbage.
 void write(byte[] array)
           
 void write(byte[] array, int offset, int length)
           
 void write(CharSequence cs)
           
 
Methods inherited from class org.apache.wicket.request.Response
close, getOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodeURL

public String encodeURL(CharSequence url)
Specified by:
encodeURL in class Response
See Also:
Response.encodeURL(CharSequence)

getContents

public CharSequence getContents()
Returns:
contents of the response

isContentsEncoded

public boolean isContentsEncoded()
Returns:
true if any escaping has been performed, false otherwise

write

public void write(CharSequence cs)
Specified by:
write in class Response
See Also:
Response.write(CharSequence)

reset

public void reset()
Resets the response to a clean state so it can be reused to save on garbage.

Overrides:
reset in class Response

write

public void write(byte[] array)
Specified by:
write in class Response

write

public void write(byte[] array,
                  int offset,
                  int length)
Specified by:
write in class Response

getContainerResponse

public Object getContainerResponse()
Specified by:
getContainerResponse in class Response


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.