|
Sun Adapter for HTTP API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.connector.otd.httpserveradapter.webservice.WebResponse
public class WebResponse
This interface represents an Web HTTP response.
| Field Summary | |
|---|---|
static java.lang.String |
CONTENT_TYPE_TEXT
|
static java.lang.String |
CONTENT_TYPE_URLENCODED
|
| Constructor Summary | |
|---|---|
WebResponse()
Constructor. |
|
WebResponse(HttpServletResponse response)
Constructor. |
|
| Method Summary | |
|---|---|
byte[] |
getByteArray()
Returns the contents of the response as a byte array. |
int |
getContentLength()
Returns the length of the content body in the response In HTTP servlets. |
java.lang.String |
getContentType()
Returns the content type of the response being sent to the client. |
Cookie |
getCookie()
Returns the cookie in the specified index. |
int |
getErrorStatusCode()
Returns the error status code to be sent to the client. |
java.lang.String |
getErrorStatusMsg()
Returns the error status message to be sent to the client. |
WebHeaderList |
getHeaderInfo()
Returns a WebHeaderList representing the headers of this response. |
java.lang.String |
getRedirectLocation()
Returns the redirect location. |
int |
getStatus()
Returns the status code for this response. |
java.lang.String |
getText()
Returns the contents of the response as a string. |
void |
persist(com.stc.connector.persistence.bpel.DataOutput dos)
Persists (serialize) this message. |
void |
restore(com.stc.connector.persistence.bpel.DataInput dis)
Restore (deserialize) this message. |
void |
setByteArray(byte[] c)
Sets the contents of the response as a byte array. |
void |
setContentLength(int len)
Sets the length of the content body in the response In HTTP servlets, this method sets the HTTP Content-Length header. |
void |
setContentType(java.lang.String type)
Sets the content type of the response being sent to the client. |
void |
setCookie(Cookie c)
Adds the specified cookie to the response. |
void |
setErrorStatusCode(int sc)
Sets the error status code to be sent to the client. |
void |
setErrorStatusMsg(java.lang.String msg)
Sets the error status message to be sent to the client. |
void |
setHeaderInfo(WebHeaderList h)
Sets the WebHeaderList representing headers of this response. |
void |
setRedirectLocation(java.lang.String loc)
Sets the redirect location. |
void |
setStatus(int sc)
Sets the status code for this response. |
void |
setText(java.lang.String c)
Sets the contents of the response as a string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTENT_TYPE_TEXT
public static final java.lang.String CONTENT_TYPE_URLENCODED
| Constructor Detail |
|---|
public WebResponse()
public WebResponse(HttpServletResponse response)
| Method Detail |
|---|
public void setCookie(Cookie c)
c - Cookie to setpublic Cookie getCookie()
public WebHeaderList getHeaderInfo()
public void setHeaderInfo(WebHeaderList h)
h - WebHeaderList of the
headers of this response.public java.lang.String getRedirectLocation()
public void setRedirectLocation(java.lang.String loc)
loc - redirect locationpublic int getErrorStatusCode()
public void setErrorStatusCode(int sc)
sc - Error status code.public java.lang.String getErrorStatusMsg()
public void setErrorStatusMsg(java.lang.String msg)
msg - Error status message.public int getStatus()
public void setStatus(int sc)
sc - Status code to setpublic int getContentLength()
public void setContentLength(int len)
len - an integer specifying the length of the content being
returned to the client; sets the Content-Length headerpublic java.lang.String getContentType()
public void setContentType(java.lang.String type)
type - a String specifying the MIME type of the contentpublic byte[] getByteArray()
public void setByteArray(byte[] c)
c - Byte array to set contents topublic void setText(java.lang.String c)
c - Contents of the response as a String; null if not availablepublic java.lang.String getText()
public void persist(com.stc.connector.persistence.bpel.DataOutput dos)
throws java.lang.Exception
persist in interface com.stc.connector.persistence.bpel.PersistableDatados - The DataOutputStream to which the Java Bean
message is persisted.
java.lang.Exception - upon error.
public void restore(com.stc.connector.persistence.bpel.DataInput dis)
throws java.lang.Exception
restore in interface com.stc.connector.persistence.bpel.PersistableDatadis - The DataInputStream from which the Java Bean
message is restored.
java.lang.Exception - upon error.
|
Sun Adapter for HTTP API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||