public class ResponseState extends Object
| Constructor and Description |
|---|
ResponseState(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
File responseBufferFolder) |
public ResponseState(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
File responseBufferFolder)
public boolean isActionResponse()
public boolean isEventResponse()
public boolean isRenderResponse()
public boolean isResourceResponse()
public boolean isMimeResponse()
public boolean isStateAwareResponse()
public void addCookie(Cookie cookie)
public void addDateHeader(String name, long date)
public void addIntHeader(String name, int value)
public boolean containsHeader(String name)
public void sendError(int errorCode,
String errorMessage)
throws IOException
IOExceptionpublic void sendError(int errorCode)
throws IOException
IOExceptionpublic void sendRedirect(String redirectLocation) throws IOException
IOExceptionpublic String getRedirectLocation()
public String getAjaxRedirectLocation()
public void setDateHeader(String name, long date)
public void setIntHeader(String name, int value)
public void setStatus(int statusCode,
String message)
public void setStatus(int statusCode)
public void flushBuffer()
throws IOException
IOExceptionpublic int getBufferSize()
public String getCharacterEncoding()
public String getContentType()
public Locale getLocale()
public ServletOutputStream getOutputStream() throws IOException
IOExceptionpublic PrintWriter getWriter() throws IOException
IOExceptionpublic boolean isCommitted()
public void reset()
public void resetBuffer()
public void setBufferSize(int size)
public void setCharacterEncoding(String charset)
public void setContentLength(int len)
public void setContentType(String type)
public void setLocale(Locale locale)
public void clear()
public void flushAndClose()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.