Interface java.servlet.ServletResponse
All Packages Class Hierarchy This Package Previous Next Index
Interface java.servlet.ServletResponse
- public interface ServletResponse
- extends Object
This interface represents a generic servlet response.
-
getOutputStream()
- Returns an output stream for writing response data.
-
setContentLength(int)
- Sets the content length for this response.
-
setContentType(String)
- Sets the content type for this response.
setContentLength
public abstract void setContentLength(int len)
- Sets the content length for this response.
- Parameters:
- len - the content length
setContentType
public abstract void setContentType(String type)
- Sets the content type for this response.
- Parameters:
- type - the content type
getOutputStream
public abstract ServletOutputStream getOutputStream()
- Returns an output stream for writing response data.
All Packages Class Hierarchy This Package Previous Next Index