|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IResourceServletResponseContext
A representation a resource request. It is used by IResourceServletInterceptor implementations.
IResourceServletInterceptor
Method Summary | |
---|---|
int |
getContentLength() Set the content-length if set |
javax.mail.internet.ContentType |
getContentType() The repsonse's content-type |
String |
getErrorMessage() Get the error message to send to the browser when getStatusCode() >= 400 |
Map<String,List<String>> |
getHeaders() Get the response's headers |
InputStream |
getInputStream() The stream representing the target's response (body) which will be returned to the browser. |
Map<String,List<String>> |
getMimeHeaders() The mime-headers returned from the target which will be returned to the browser. |
String |
getRedirectUrl() Get the URL which if not null will be sent as a redirect to the browser. |
int |
getStatusCode() The status/error code sent to the browser. |
void |
setContentLength(int length) Set the response's content-length |
void |
setContentType(javax.mail.internet.ContentType type) Set the repsonse's content-type |
void |
setErrorMessage(String message) Set the error message to send to browser when getStatusCode() >= 400 |
void |
setHeaders(Map<String,List<String>> headers) Get the repsonse's headers |
void |
setInputStream(InputStream out) Set the input stream which will be returned to the browser. |
void |
setRedirectUrl(String url) Set the URL to redirect to |
void |
setStatusCode(int code) Set the status/error code to be sent to the browser. |
Method Detail |
---|
InputStream getInputStream()
void setInputStream(InputStream out)
out
- The stream to write to the browser.Map<String,List<String>> getMimeHeaders()
int getStatusCode()
void setStatusCode(int code)
code
-String getErrorMessage()
getStatusCode() >= 400
void setErrorMessage(String message)
getStatusCode() >= 400
message
- the error messageString getRedirectUrl()
void setRedirectUrl(String url)
url
- the to send a redirect with or null if no redirect should be sent.void setContentType(javax.mail.internet.ContentType type)
type
- The content-typejavax.mail.internet.ContentType getContentType()
void setContentLength(int length)
length
- The content-lengthint getContentLength()
void setHeaders(Map<String,List<String>> headers)
headers
- TheMap<String,List<String>> getHeaders()
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.