|
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.WebRequest
public class WebRequest
This interface represents a Web HTTP request.
Constructor Summary | |
---|---|
WebRequest()
Default Constructor. |
Method Summary | |
---|---|
java.lang.String |
getAuthType()
Returns the name of the authentication scheme used to protect the servlet. |
byte[] |
getByteArray()
Returns the contents of the request as a byte array. |
java.lang.String |
getCharacterEncoding()
Returns the name of the character encoding used in the body of this request. |
int |
getContentLength()
Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known. |
java.lang.String |
getContentType()
Returns the MIME type of the body of the request, or null if the type is not known. |
java.lang.String |
getContextPath()
Returns the portion of the request URI that indicates the context of the request. |
CookieList |
getCookies()
Returns an array containing tall of the Cookie objects the client sent with this request. |
WebHeaderList |
getHeaderInfo()
Returns a WebHeaderList representing the headers of this request. |
boolean |
getIsRequestedSessionIdFromCookie()
Checks whether the requested session ID came in as a cookie. |
boolean |
getIsRequestedSessionIdFromURL()
Checks whether the requested session ID came in as part of the request URL. |
boolean |
getIsRequestedSessionIdValid()
Checks whether the requested session ID is still valid. |
boolean |
getIsSecure()
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
boolean |
getIsUserInRole(java.lang.String role)
Returns a boolean indicating whether the authenticated user is included in the specified logical "role". |
java.lang.String |
getMethod()
Returns the name of the HTTP method with which this request was made; for example, GET, POST, or PUT. |
WebParameterList |
getParameterInfo()
Returns a WebParameterList representing the parameters of this request. |
java.lang.String |
getPathInfo()
Returns any extra path information associated with the URL the client sent when it made this request. |
java.lang.String |
getPathTranslated()
Returns any extra path information after the servlet name but before the query string. |
java.lang.String |
getProtocol()
Returns the name and version of the protocol the request uses in form protocol/majorVersion.minorVersion, for example, HTTP/1.1. |
java.lang.String |
getQueryString()
Returns the query string that is contained in the request URL after the path. |
java.lang.String |
getRemoteAddr()
Returns the Internet Protocol (IP) address of the client that sent the request. |
java.lang.String |
getRemoteHost()
Returns the fully qualified name of the client that sent the request. |
java.lang.String |
getRemoteUser()
Returns the login of the user making this request, if the user has not been authenticated. |
java.lang.String |
getRequestedSessionId()
Returns the session ID specified by the client. |
java.lang.String |
getRequestURI()
Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request. |
java.lang.String |
getRequestURL()
Returns the reconstructed URL the client used to make the request. |
java.lang.String |
getScheme()
Returns the name of the scheme used to make this request; for example http, https, or ftp. |
java.lang.String |
getServerName()
Returns the host name of the server that received the request. |
int |
getServerPort()
Returns the port number on which this request was received. |
java.lang.String |
getServletPath()
Returns the part of this request's URL that calls the servlet. |
java.lang.String |
getText()
Returns the contents of the request as a string. |
java.security.Principal |
getUserPrincipal()
Returns a java.security.Principal object containing the name of the current authenticated user. |
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 |
setAuthType(java.lang.String type)
Sets the name of the authentication scheme used to protect the servlet. |
void |
setByteArray(byte[] c)
Sets the contents of the request as a byte array. |
void |
setCharacterEncoding(java.lang.String enc)
Sets the name of the character encoding used in the body of this request. |
void |
setContentLength(int len)
Sets the length, in bytes, of the request body. |
void |
setContentType(java.lang.String type)
Sets the MIME type of the body of the request. |
void |
setContextPath(java.lang.String path)
Sets the portion of the request URI that indicates the context of the request. |
void |
setCookies(CookieList c)
Sets an array containing tall of the Cookie objects the client sent with this request. |
void |
setHeaderInfo(WebHeaderList h)
Sets the WebHeaderList representing headers of this request. |
void |
setIsRequestedSessionIdFromCookie(boolean flag)
Sets whether the requested session ID came in as a cookie. |
void |
setIsRequestedSessionIdFromURL(boolean flag)
Sets whether the requested session ID came in as part of the request URL. |
void |
setIsRequestedSessionIdValid(boolean flag)
Sets whether the requested session ID is still valid. |
void |
setIsSecure(boolean flag)
Sets a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
void |
setMethod(java.lang.String method)
Sets the name of the HTTP method with which this request was made; for example, GET, POST, or PUT. |
void |
setParameterInfo(WebParameterList p)
Sets the WebParameterList representing parameters of this request. |
void |
setPathInfo(java.lang.String path)
Sets any extra path information associated with the URL the client sent when it made this request. |
void |
setPathTranslated(java.lang.String path)
Sets any extra path information after the servlet name but before the query string. |
void |
setProtocol(java.lang.String p)
Sets the name and version of the protocol the request uses in form protocol/majorVersion.minorVersion, for example, HTTP/1.1. |
void |
setQueryString(java.lang.String query)
Sets the query string that is contained in the request URL after the path. |
void |
setRemoteAddr(java.lang.String addr)
Sets the Internet Protocol (IP) address of the client that sent the request. |
void |
setRemoteHost(java.lang.String host)
Sets the fully qualified name of the client that sent the request. |
void |
setRemoteUser(java.lang.String user)
Sets the login of the user making this request, if the user has not been authenticated. |
void |
setRequestedSessionId(java.lang.String sessionID)
Sets the session ID specified by the client. |
void |
setRequestURI(java.lang.String uri)
Sets the part of this request's URL from the protocol name dos.writeInt(version); up to the query string in the first line of the HTTP request. |
void |
setRequestURL(java.lang.String url)
Sets the reconstructed URL the client used to make the request. |
void |
setScheme(java.lang.String sch)
Sets the name of the scheme used to make this request; for example http, https, or ftp. |
void |
setServerName(java.lang.String name)
Sets the host name of the server that received the request. |
void |
setServerPort(int port)
Sets the port number on which this request was received. |
void |
setServletPath(java.lang.String path)
Sets the part of this request's URL that calls the servlet. |
void |
setText(java.lang.String c)
Sets the contents of the request as a string. |
void |
setUserPrincipal(java.security.Principal p)
Sets a java.security.Principal object containing the name of the current authenticated user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebRequest()
Method Detail |
---|
public java.lang.String getCharacterEncoding()
public void setCharacterEncoding(java.lang.String enc)
enc
- Name of the character encoding usedpublic int getContentLength()
public void setContentLength(int len)
len
- The length, in bytes, of the request bodypublic java.lang.String getContentType()
public void setContentType(java.lang.String type)
type
- MIME type of the body of the request.public WebParameterList getParameterInfo()
public void setParameterInfo(WebParameterList p)
p
- WebParameterList of the
parameters of this request.public java.lang.String getProtocol()
public void setProtocol(java.lang.String p)
p
- Name and version of the protocolpublic java.lang.String getRemoteAddr()
public void setRemoteAddr(java.lang.String addr)
addr
- The Internet Protocol (IP) address of the client.public java.lang.String getRemoteHost()
public void setRemoteHost(java.lang.String host)
host
- The fully qualified name of the client that sent the request.public java.lang.String getScheme()
public void setScheme(java.lang.String sch)
sch
- Name of the scheme used to make this request.public java.lang.String getServerName()
public void setServerName(java.lang.String name)
name
- Host name of the server that received the request.public int getServerPort()
public void setServerPort(int port)
port
- Port number on which this request was received.public boolean getIsSecure()
public void setIsSecure(boolean flag)
flag
- Boolean indicating whether this request was made
using a secure channel, such as HTTPSpublic java.lang.String getAuthType()
public void setAuthType(java.lang.String type)
type
- Name of the authentication schema used to protect the servlet.public java.lang.String getContextPath()
public void setContextPath(java.lang.String path)
path
- Portion of the request URI that indicates the context of
the request.public CookieList getCookies()
public void setCookies(CookieList c)
c
- Array containing all of the Cookie objects the client sent
with this request.public WebHeaderList getHeaderInfo()
public void setHeaderInfo(WebHeaderList h)
h
- WebHeaderList of the
headers of this request.public java.lang.String getMethod()
public void setMethod(java.lang.String method)
method
- Name of the HTTP method with which this request was made.public java.lang.String getPathInfo()
public void setPathInfo(java.lang.String path)
path
- Any extra path information associated with the URL the
client sentpublic java.lang.String getPathTranslated()
public void setPathTranslated(java.lang.String path)
path
- Any extra path information after the servlet name but
before the query string, and translates it to a real path.public java.lang.String getQueryString()
public void setQueryString(java.lang.String query)
query
- The query string that is contained in the request URL
after the path.public java.lang.String getRemoteUser()
public void setRemoteUser(java.lang.String user)
user
- The login of the user making this request if the user
has not been authenticated.public java.lang.String getRequestedSessionId()
public void setRequestedSessionId(java.lang.String sessionID)
sessionID
- The session ID specified by the client.public java.lang.String getRequestURI()
public void setRequestURI(java.lang.String uri)
uri
- The part of this request's URL from the protocol name
up to the query string in the first line of the HTTP
request.public java.lang.String getRequestURL()
public void setRequestURL(java.lang.String url)
url
- The reconstructed URL the client used to make the request.public java.lang.String getServletPath()
public void setServletPath(java.lang.String path)
path
- The part of this request's URL that calls the servlet.public java.security.Principal getUserPrincipal()
public void setUserPrincipal(java.security.Principal p)
p
- A Principal object containing the name of the current
authenticated user.public boolean getIsRequestedSessionIdFromCookie()
public void setIsRequestedSessionIdFromCookie(boolean flag)
flag
- Indicates whether the requested session ID came in as
a cookie.public boolean getIsRequestedSessionIdFromURL()
public void setIsRequestedSessionIdFromURL(boolean flag)
flag
- Indicates whether the requested session ID came in as
part of the request URL.public boolean getIsRequestedSessionIdValid()
public void setIsRequestedSessionIdValid(boolean flag)
flag
- Indicates whether the requested session ID still valid.public boolean getIsUserInRole(java.lang.String role)
public byte[] getByteArray()
public void setByteArray(byte[] c)
c
- Contents of the request as a byte array; null if not availablepublic void setText(java.lang.String c)
c
- Contents of the request 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.PersistableData
dos
- 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.PersistableData
dis
- 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 |