fr.ifremer.wao.ui.services
Class AppModule.ResponseWrapper

java.lang.Object
  extended by fr.ifremer.wao.ui.services.AppModule.ResponseWrapper
All Implemented Interfaces:
org.apache.tapestry5.services.Response
Enclosing class:
AppModule

protected static class AppModule.ResponseWrapper
extends Object
implements org.apache.tapestry5.services.Response


Field Summary
protected  String contentType
           
protected  ByteArrayOutputStream outputStream
           
protected  PrintWriter printWriter
           
protected  org.apache.tapestry5.services.Response wrappedResponse
           
 
Constructor Summary
AppModule.ResponseWrapper(org.apache.tapestry5.services.Response wrappedResponse)
           
 
Method Summary
 void disableCompression()
           
 String encodeRedirectURL(String URL)
           
 String encodeURL(String URL)
           
 OutputStream getOutputStream(String contentType)
           
 PrintWriter getPrintWriter(String contentType)
           
 boolean isCommitted()
           
 void sendError(int sc, String message)
           
 void sendRedirect(org.apache.tapestry5.Link link)
           
 void sendRedirect(String URL)
           
 void setContentLength(int length)
           
 void setDateHeader(String name, long date)
           
 void setHeader(String name, String value)
           
 void setIntHeader(String name, int value)
           
 void setStatus(int sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wrappedResponse

protected org.apache.tapestry5.services.Response wrappedResponse

outputStream

protected ByteArrayOutputStream outputStream

printWriter

protected PrintWriter printWriter

contentType

protected String contentType
Constructor Detail

AppModule.ResponseWrapper

public AppModule.ResponseWrapper(org.apache.tapestry5.services.Response wrappedResponse)
Method Detail

getPrintWriter

public PrintWriter getPrintWriter(String contentType)
                           throws IOException
Specified by:
getPrintWriter in interface org.apache.tapestry5.services.Response
Throws:
IOException

getOutputStream

public OutputStream getOutputStream(String contentType)
                             throws IOException
Specified by:
getOutputStream in interface org.apache.tapestry5.services.Response
Throws:
IOException

sendRedirect

public void sendRedirect(String URL)
                  throws IOException
Specified by:
sendRedirect in interface org.apache.tapestry5.services.Response
Throws:
IOException

sendRedirect

public void sendRedirect(org.apache.tapestry5.Link link)
                  throws IOException
Specified by:
sendRedirect in interface org.apache.tapestry5.services.Response
Throws:
IOException

setStatus

public void setStatus(int sc)
Specified by:
setStatus in interface org.apache.tapestry5.services.Response

sendError

public void sendError(int sc,
                      String message)
               throws IOException
Specified by:
sendError in interface org.apache.tapestry5.services.Response
Throws:
IOException

setContentLength

public void setContentLength(int length)
Specified by:
setContentLength in interface org.apache.tapestry5.services.Response

setDateHeader

public void setDateHeader(String name,
                          long date)
Specified by:
setDateHeader in interface org.apache.tapestry5.services.Response

setHeader

public void setHeader(String name,
                      String value)
Specified by:
setHeader in interface org.apache.tapestry5.services.Response

setIntHeader

public void setIntHeader(String name,
                         int value)
Specified by:
setIntHeader in interface org.apache.tapestry5.services.Response

encodeURL

public String encodeURL(String URL)
Specified by:
encodeURL in interface org.apache.tapestry5.services.Response

encodeRedirectURL

public String encodeRedirectURL(String URL)
Specified by:
encodeRedirectURL in interface org.apache.tapestry5.services.Response

isCommitted

public boolean isCommitted()
Specified by:
isCommitted in interface org.apache.tapestry5.services.Response

disableCompression

public void disableCompression()
Specified by:
disableCompression in interface org.apache.tapestry5.services.Response


Copyright © 2009-2011 Ifremer. All Rights Reserved.