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.

Method Index

 o getOutputStream()
Returns an output stream for writing response data.
 o setContentLength(int)
Sets the content length for this response.
 o setContentType(String)
Sets the content type for this response.

Methods

 o setContentLength
  public abstract void setContentLength(int len)
Sets the content length for this response.
Parameters:
len - the content length
 o setContentType
  public abstract void setContentType(String type)
Sets the content type for this response.
Parameters:
type - the content type
 o getOutputStream
  public abstract ServletOutputStream getOutputStream()
Returns an output stream for writing response data.

All Packages  Class Hierarchy  This Package  Previous  Next  Index