|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.monitor.AbstractMonitorEnabled de.bea.domingo.http.DominoHttpClient
public final class DominoHttpClient
An Http client for communication with Lotus Domino.
Constructor Summary | |
---|---|
DominoHttpClient(DNotesMonitor monitor,
java.lang.String host,
java.lang.String username,
java.lang.String password)
Constructor. |
Method Summary | |
---|---|
DominoGetMethod |
createGetMethod(java.lang.String pathInfo)
Creates and returns a new Http GET method. |
DominoPostMethod |
createPost(java.lang.String pathInfo)
Creates and returns a new Http POST method. |
int |
executeMethod(DominoHttpMethod method)
Executes the given HTTP method . |
int |
executeMethod(org.apache.commons.httpclient.HostConfiguration hostConfiguration,
org.apache.commons.httpclient.HttpMethod method)
Executes the given HTTP method using custom
host configuration . |
int |
executeMethod(org.apache.commons.httpclient.HostConfiguration hostConfiguration,
org.apache.commons.httpclient.HttpMethod method,
org.apache.commons.httpclient.HttpState state)
Executes the given HTTP method using the given custom
host configuration with the given custom
HTTP state . |
java.lang.String |
getCanonicalUserName()
Returns the name of the current user in the canonical format. |
java.lang.String |
getCommonUserName()
Returns the name of the current user in the common format. |
java.lang.String |
getHost()
Returns the host name of the server. |
int |
getPort()
Returns the port of the server. |
java.lang.String |
getProtocol()
Returns the protocol for the connection, either http or https. |
java.lang.String |
getUserName()
Returns the current user name. |
void |
login()
Login to the Lotus Domino server. |
Methods inherited from class de.bea.domingo.monitor.AbstractMonitorEnabled |
---|
getMonitor, setMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DominoHttpClient(DNotesMonitor monitor, java.lang.String host, java.lang.String username, java.lang.String password) throws java.net.MalformedURLException
monitor
- the monitorhost
- the host for the session to connectusername
- the username for loginpassword
- the password for login
java.net.MalformedURLException
- if the host is not validMethod Detail |
---|
public void login() throws java.io.IOException
java.io.IOException
- if the login failspublic java.lang.String getProtocol()
public java.lang.String getHost()
public int getPort()
public java.lang.String getUserName()
public java.lang.String getCommonUserName()
public java.lang.String getCanonicalUserName()
public int executeMethod(org.apache.commons.httpclient.HostConfiguration hostConfiguration, org.apache.commons.httpclient.HttpMethod method, org.apache.commons.httpclient.HttpState state) throws java.io.IOException
HTTP method
using the given custom
host configuration
with the given custom
HTTP state
.
hostConfiguration
- The host configuration
to use. If null
, the host configuration
returned by HttpClient.getHostConfiguration()
will be usedmethod
- the HTTP method
to execute.state
- the HTTP state
to use when executing the
method. If null
, the state returned by
HttpClient.getState()
will be used.
java.io.IOException
- If an I/O (transport) error occurs. Some transport
exceptions can be recovered from.public int executeMethod(org.apache.commons.httpclient.HostConfiguration hostConfiguration, org.apache.commons.httpclient.HttpMethod method) throws java.io.IOException
HTTP method
using custom
host configuration
.
hostConfiguration
- The host configuration
to use. If null
, the host configuration
returned by HttpClient.getHostConfiguration()
will be usedmethod
- the HTTP method
to execute
java.io.IOException
- If an I/O (transport) error occurs. Some transport
exceptions can be recovered from.public int executeMethod(DominoHttpMethod method) throws java.io.IOException
HTTP method
.
method
- the HTTP method
to execute
java.io.IOException
- If an I/O (transport) error occurs. Some transport
exceptions can be recovered from.public DominoPostMethod createPost(java.lang.String pathInfo)
pathInfo
- the path on the server
public DominoGetMethod createGetMethod(java.lang.String pathInfo)
pathInfo
- the path on the server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |