|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.author.toc.ActiveMathAuthenticatedConnection
public class ActiveMathAuthenticatedConnection
This class is responsible to ensure that an authenticated connection is preformed to the server using cookies and possibly opening a pop-up to request user-names and password.
| Constructor Summary | |
|---|---|
ActiveMathAuthenticatedConnection()
Simple constructor: a pop-up will appear. |
|
ActiveMathAuthenticatedConnection(Map cookies,
URL cookiesPath)
Initializes the connection to contain exactly the indicated cookies for the given URL |
|
ActiveMathAuthenticatedConnection(Subconfiguration config)
Constructs a connection using the properties cookies. |
|
| Method Summary | |
|---|---|
org.apache.commons.httpclient.methods.PostMethod |
createFormPostMethod(String url)
|
org.apache.commons.httpclient.methods.GetMethod |
createGetMethod(String url)
|
org.apache.commons.httpclient.methods.PostMethod |
createRawPostMethod(String url,
byte[] postContent)
|
int |
executeMethod(org.apache.commons.httpclient.HttpMethod method)
|
org.apache.commons.httpclient.HttpClient |
getClient()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActiveMathAuthenticatedConnection()
public ActiveMathAuthenticatedConnection(Subconfiguration config)
cookies.<name>.
public ActiveMathAuthenticatedConnection(Map cookies,
URL cookiesPath)
cookies - The table associating cookie-names to cookie-valuescookiesPath - The path of the cookies.| Method Detail |
|---|
public org.apache.commons.httpclient.HttpClient getClient()
HttpState describing the current state of the connection..
public int executeMethod(org.apache.commons.httpclient.HttpMethod method)
throws IOException,
org.apache.commons.httpclient.HttpException
IOException
org.apache.commons.httpclient.HttpExceptionpublic org.apache.commons.httpclient.methods.GetMethod createGetMethod(String url)
url - The URL to set the request to
executeMethod(org.apache.commons.httpclient.HttpMethod).
public org.apache.commons.httpclient.methods.PostMethod createRawPostMethod(String url,
byte[] postContent)
url - the url to ost topostContent - The bytes that will be sent over
executeMethod(org.apache.commons.httpclient.HttpMethod).public org.apache.commons.httpclient.methods.PostMethod createFormPostMethod(String url)
url - the url to ost to
executeMethod(org.apache.commons.httpclient.HttpMethod).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||