org.apache.wicket.protocol.http.portlet
Class WicketResponseState
java.lang.Object
org.apache.wicket.protocol.http.portlet.WicketResponseState
public class WicketResponseState
- extends Object
Temporarily holds the current state of a Wicket response when invoked from WicketPortlet: buffer,
headers, state and the redirect location to be processed afterwards within WicketPortlet
- Author:
- Ate Douma
Constructor Summary |
WicketResponseState(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WicketResponseState
public WicketResponseState(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
isActionResponse
public boolean isActionResponse()
isEventResponse
public boolean isEventResponse()
isRenderResponse
public boolean isRenderResponse()
isResourceResponse
public boolean isResourceResponse()
isMimeResponse
public boolean isMimeResponse()
isStateAwareResponse
public boolean isStateAwareResponse()
addCookie
public void addCookie(javax.servlet.http.Cookie cookie)
addDateHeader
public void addDateHeader(String name,
long date)
addHeader
public void addHeader(String name,
String value)
addIntHeader
public void addIntHeader(String name,
int value)
containsHeader
public boolean containsHeader(String name)
sendError
public void sendError(int errorCode,
String errorMessage)
throws IOException
- Throws:
IOException
sendError
public void sendError(int errorCode)
throws IOException
- Throws:
IOException
sendRedirect
public void sendRedirect(String redirectLocation)
throws IOException
- Throws:
IOException
getRedirectLocation
public String getRedirectLocation()
setDateHeader
public void setDateHeader(String name,
long date)
setHeader
public void setHeader(String name,
String value)
setIntHeader
public void setIntHeader(String name,
int value)
setStatus
public void setStatus(int statusCode,
String message)
setStatus
public void setStatus(int statusCode)
flushBuffer
public void flushBuffer()
throws IOException
- Throws:
IOException
getBufferSize
public int getBufferSize()
getCharacterEncoding
public String getCharacterEncoding()
getContentType
public String getContentType()
getLocale
public Locale getLocale()
getOutputStream
public javax.servlet.ServletOutputStream getOutputStream()
throws IOException
- Throws:
IOException
getWriter
public PrintWriter getWriter()
throws IOException
- Throws:
IOException
isCommitted
public boolean isCommitted()
reset
public void reset()
resetBuffer
public void resetBuffer()
setBufferSize
public void setBufferSize(int size)
setCharacterEncoding
public void setCharacterEncoding(String charset)
setContentLength
public void setContentLength(int len)
setContentType
public void setContentType(String type)
setLocale
public void setLocale(Locale locale)
clear
public void clear()
flush
public void flush()
throws IOException
- Throws:
IOException
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.