org.apache.empire.struts2.web.servlet
Class ServletResponseWrapper

java.lang.Object
  extended by org.apache.empire.struts2.web.servlet.ServletResponseWrapper
All Implemented Interfaces:
ResponseContext

public class ServletResponseWrapper
extends java.lang.Object
implements ResponseContext


Constructor Summary
ServletResponseWrapper(javax.servlet.http.HttpServletResponse res)
           
 
Method Summary
 void addCookie(javax.servlet.http.Cookie cookie)
           
 java.lang.String encodeRedirectURL(java.lang.String url)
           
 java.lang.String encodeURL(java.lang.String url)
           
 void flushBuffer()
           
 int getBufferSize()
           
 java.lang.String getCharacterEncoding()
           
 java.lang.String getContentType()
           
 java.lang.Object getExternalResponse()
           
 java.util.Locale getLocale()
           
 java.io.OutputStream getOutputStream()
           
 java.io.PrintWriter getWriter()
           
 boolean isCommitted()
           
 void reset()
           
 void resetBuffer()
           
 void sendRedirect(java.lang.String location)
           
 void setBufferSize(int size)
           
 void setContentType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletResponseWrapper

public ServletResponseWrapper(javax.servlet.http.HttpServletResponse res)
Method Detail

getExternalResponse

public java.lang.Object getExternalResponse()
Specified by:
getExternalResponse in interface ResponseContext

addCookie

public void addCookie(javax.servlet.http.Cookie cookie)
Specified by:
addCookie in interface ResponseContext

encodeURL

public java.lang.String encodeURL(java.lang.String url)
Specified by:
encodeURL in interface ResponseContext

encodeRedirectURL

public java.lang.String encodeRedirectURL(java.lang.String url)
Specified by:
encodeRedirectURL in interface ResponseContext

sendRedirect

public void sendRedirect(java.lang.String location)
                  throws java.io.IOException
Specified by:
sendRedirect in interface ResponseContext
Throws:
java.io.IOException

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface ResponseContext

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface ResponseContext

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface ResponseContext

setContentType

public void setContentType(java.lang.String type)
Specified by:
setContentType in interface ResponseContext

getBufferSize

public int getBufferSize()
Specified by:
getBufferSize in interface ResponseContext

setBufferSize

public void setBufferSize(int size)
Specified by:
setBufferSize in interface ResponseContext

getWriter

public java.io.PrintWriter getWriter()
                              throws java.io.IOException
Specified by:
getWriter in interface ResponseContext
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Specified by:
getOutputStream in interface ResponseContext
Throws:
java.io.IOException

flushBuffer

public void flushBuffer()
                 throws java.io.IOException
Specified by:
flushBuffer in interface ResponseContext
Throws:
java.io.IOException

resetBuffer

public void resetBuffer()
Specified by:
resetBuffer in interface ResponseContext

isCommitted

public boolean isCommitted()
Specified by:
isCommitted in interface ResponseContext

reset

public void reset()
Specified by:
reset in interface ResponseContext


Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.