Java Servlet Api Doc For Mac
ServletResponseWrapper (Servlet API Documentation) Class NEXT CLASS SUMMARY: NESTED FIELD DETAIL: FIELD javax.servlet Class ServletResponseWrapper java.lang.Object javax.servlet.ServletResponseWrapper All Implemented Interfaces: Direct Known Subclasses: public class ServletResponseWrapper extends java.lang.Object implements Provides a convenient implementation of the ServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped response object. Since: v 2.3 Version: $Version$ Author: Various See Also: Constructor Summary ( response) Creates a ServletResponse adaptor wrapping the given response object.
Method Summary void The default behavior of this method is to call flushBuffer on the wrapped response object. Int The default behavior of this method is to return getBufferSize on the wrapped response object. Java.lang.String The default behavior of this method is to return getCharacterEncoding on the wrapped response object. Java.lang.String The default behavior of this method is to return getContentType on the wrapped response object.
Java.util.Locale The default behavior of this method is to return getLocale on the wrapped response object. The default behavior of this method is to return getOutputStream on the wrapped response object.
Return the wrapped ServletResponse object. Java.io.PrintWriter The default behavior of this method is to return getWriter on the wrapped response object. Boolean The default behavior of this method is to return isCommitted on the wrapped response object. Void The default behavior of this method is to call reset on the wrapped response object. Void The default behavior of this method is to call resetBuffer on the wrapped response object. Void (int size) The default behavior of this method is to call setBufferSize(int size) on the wrapped response object.
Servlet Api Documentation
Void (java.lang.String charset) The default behavior of this method is to call setCharacterEncoding(String charset) on the wrapped response object. Void (int len) The default behavior of this method is to call setContentLength(int len) on the wrapped response object.
Void (java.lang.String type) The default behavior of this method is to call setContentType(String type) on the wrapped response object. Void (java.util.Locale loc) The default behavior of this method is to call setLocale(Locale loc) on the wrapped response object. Void ( response) Sets the response being wrapped. Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Constructor Detail ServletResponseWrapper public ServletResponseWrapper( response) Creates a ServletResponse adaptor wrapping the given response object.
Servlet Api Download
Throws: java.lang.IllegalArgumentException - if the response is null. Method Detail getResponse public getResponse Return the wrapped ServletResponse object. SetResponse public void setResponse( response) Sets the response being wrapped. Throws: java.lang.IllegalArgumentException - if the response is null. SetCharacterEncoding public void setCharacterEncoding(java.lang.String charset) The default behavior of this method is to call setCharacterEncoding(String charset) on the wrapped response object. Specified by: in interface Parameters: charset - a String specifying only the character set defined by IANA Character Sets (Since: 2.4 See Also: getCharacterEncoding public java.lang.String getCharacterEncoding The default behavior of this method is to return getCharacterEncoding on the wrapped response object. Specified by: in interface Returns: a String specifying the name of the character encoding, for example, UTF-8 getOutputStream public getOutputStream throws java.io.IOException The default behavior of this method is to return getOutputStream on the wrapped response object.
Java Servlet Api Doc For Mac
Specified by: in interface Returns: a for writing binary data Throws: java.io.IOException - if an input or output exception occurred See Also: getWriter public java.io.PrintWriter getWriter throws java.io.IOException The default behavior of this method is to return getWriter on the wrapped response object. Specified by: in interface Returns: a PrintWriter object that can return character data to the client Throws: java.io.IOException - if an input or output exception occurred See Also:, setContentLength public void setContentLength(int len) The default behavior of this method is to call setContentLength(int len) on the wrapped response object. Specified by: in interface Parameters: len - an integer specifying the length of the content being returned to the client; sets the Content-Length header setContentType public void setContentType(java.lang.String type) The default behavior of this method is to call setContentType(String type) on the wrapped response object. Specified by: in interface Parameters: type - a String specifying the MIME type of the content See Also:, getContentType public java.lang.String getContentType The default behavior of this method is to return getContentType on the wrapped response object. Specified by: in interface Returns: a String specifying the content type, for example, text/html; charset=UTF-8, or null Since: 2.4 setBufferSize public void setBufferSize(int size) The default behavior of this method is to call setBufferSize(int size) on the wrapped response object. Specified by: in interface Parameters: size - the preferred buffer size See Also:, getBufferSize public int getBufferSize The default behavior of this method is to return getBufferSize on the wrapped response object. Specified by: in interface Returns: the actual buffer size used See Also:, flushBuffer public void flushBuffer throws java.io.IOException The default behavior of this method is to call flushBuffer on the wrapped response object.
Specified by: in interface Throws: java.io.IOException See Also:, isCommitted public boolean isCommitted The default behavior of this method is to return isCommitted on the wrapped response object. Specified by: in interface Returns: a boolean indicating if the response has been committed See Also:, reset public void reset The default behavior of this method is to call reset on the wrapped response object. Specified by: in interface See Also:, resetBuffer public void resetBuffer The default behavior of this method is to call resetBuffer on the wrapped response object. Specified by: in interface See Also:, setLocale public void setLocale(java.util.Locale loc) The default behavior of this method is to call setLocale(Locale loc) on the wrapped response object. Specified by: in interface Parameters: loc - the locale of the response See Also:, getLocale public java.util.Locale getLocale The default behavior of this method is to return getLocale on the wrapped response object. Specified by: in interface See Also: Class NEXT CLASS SUMMARY: NESTED FIELD DETAIL: FIELD Copyright © 1999-2002 The Apache Software Foundation.
All Rights Reserved.