|
HATS 7.5.1 Web API ReferencePublicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IResponse
Class Name: IResponse Provides a generic interface for the implementing response objects.
Class Type: Interface
Base Class: None
Intf Class: None
Description:
| Field Summary | |
|---|---|
static String |
CLASSNAME
The fully-qualified name of this class. |
| Method Summary | |
|---|---|
void |
addHeader(String name,
String value)
Adds a response header with the given name and value. |
String |
encodeRedirectURL(String url)
Encodes the specified URL for sendRedirect. |
String |
encodeURL(String name)
Retrieve the specified attribute. |
OutputStream |
getOutputStream()
Returns a OutputStream suitable for writing binary data in the response. |
void |
sendRedirect(String url)
Sends a temporary redirect response to the client. |
void |
setContentLength(int i)
Sets the length of the content body in the response. |
void |
setContentType(String mimeType)
Sets the content type of the response being sent to the client, |
void |
setDateHeader(String name,
long date)
Sets a response header with the given name and date-value. |
void |
setHeader(String name,
String value)
Sets a response header with the given name and value ¶m name - the name of the header ¶m value - the header value |
| Field Detail |
|---|
static final String CLASSNAME
| Method Detail |
|---|
String encodeURL(String name)
name - The name of the attribute being retrieved.
String encodeRedirectURL(String url)
url - URL to encode if necessary.
void sendRedirect(String url)
throws IOException
url - The redirect location URL.
IOException
void setDateHeader(String name,
long date)
name - The name of the header to set.date - The additional date value.
void setHeader(String name,
String value)
void addHeader(String name,
String value)
name - The name of the header.value - The additional header value.
OutputStream getOutputStream()
throws IOException
IOExceptionServletResponse.getOutputStream()void setContentLength(int i)
i - The length of the content body.void setContentType(String mimeType)
mimeType - The content type of the response.
|
HATS 7.5.1 (201005110649) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||