| Method from org.apache.struts2.portlet.servlet.PortletServletResponse Detail: |
public void addCookie(Cookie cookie) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void addDateHeader(String name,
long date) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void addHeader(String name,
String value) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void addIntHeader(String name,
int value) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public boolean containsHeader(String name) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public String encodeRedirectURL(String url) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public String encodeRedirectUrl(String url) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public String encodeURL(String url) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public String encodeUrl(String url) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void flushBuffer() throws IOException {
if(portletResponse instanceof RenderResponse) {
((RenderResponse)portletResponse).flushBuffer();
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public int getBufferSize() {
if(portletResponse instanceof RenderResponse) {
return ((RenderResponse)portletResponse).getBufferSize();
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public String getCharacterEncoding() {
if(portletResponse instanceof RenderResponse) {
return ((RenderResponse)portletResponse).getCharacterEncoding();
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public String getContentType() {
if(portletResponse instanceof RenderResponse) {
return ((RenderResponse)portletResponse).getContentType();
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public Locale getLocale() {
if(portletResponse instanceof RenderResponse) {
return ((RenderResponse)portletResponse).getLocale();
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public ServletOutputStream getOutputStream() throws IOException {
if(portletResponse instanceof RenderResponse) {
return new PortletServletOutputStream(((RenderResponse)portletResponse).getPortletOutputStream());
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public PortletResponse getPortletResponse() {
return portletResponse;
}
|
public PrintWriter getWriter() throws IOException {
if(portletResponse instanceof RenderResponse) {
return ((RenderResponse)portletResponse).getWriter();
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public boolean isCommitted() {
if(portletResponse instanceof RenderResponse) {
return ((RenderResponse)portletResponse).isCommitted();
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public void reset() {
if(portletResponse instanceof RenderResponse) {
((RenderResponse)portletResponse).reset();
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public void resetBuffer() {
if(portletResponse instanceof RenderResponse) {
((RenderResponse)portletResponse).resetBuffer();
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public void sendError(int sc) throws IOException {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void sendError(int sc,
String msg) throws IOException {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void sendRedirect(String location) throws IOException {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void setBufferSize(int size) {
if(portletResponse instanceof RenderResponse) {
((RenderResponse)portletResponse).setBufferSize(size);
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public void setCharacterEncoding(String charset) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void setContentLength(int len) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void setContentType(String type) {
if(portletResponse instanceof RenderResponse) {
((RenderResponse)portletResponse).setContentType(type);
}
else {
throw new IllegalStateException("Not allowed in event phase");
}
}
|
public void setDateHeader(String name,
long date) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void setHeader(String name,
String value) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void setIntHeader(String name,
int value) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void setLocale(Locale loc) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void setStatus(int sc) {
throw new IllegalStateException("Not allowed in a portlet");
}
|
public void setStatus(int sc,
String sm) {
throw new IllegalStateException("Not allowed in a portlet");
}
|