|
Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1.1) E17274-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.stellent.ridc.protocol.http.auth.FormAuthHandler
public class FormAuthHandler
Handler for Forms-based login to the Content Server
Constructor Summary | |
---|---|
FormAuthHandler(IdcHttpProtocol httpProtocol) |
Method Summary | |
---|---|
protected org.apache.commons.httpclient.HttpClient |
createHttpClient() |
protected org.apache.commons.httpclient.methods.PostMethod |
createLoginMethod() Create the post method for the login operation |
protected int |
executeLogin(org.apache.commons.httpclient.methods.PostMethod postMethod) Execute the login method |
IdcContext.HttpAuthScheme |
getAuthScheme() |
org.apache.commons.httpclient.HttpClient |
getHttpClient() |
IdcHttpProtocol |
getHttpProtocol() |
protected IdcContext.LoginForm |
getLoginForm() Retrieve the login form for this context |
protected java.lang.String |
getLoginFormPath(IdcContext.LoginForm loginForm) Determine the location for the login form post |
org.apache.commons.httpclient.HttpMethod |
getPingMethod() |
protected void |
handleFormLogin() Handle logging into the Content Server via a login form |
protected void |
handleFormResponse(org.apache.commons.httpclient.methods.PostMethod postMethod, int status) Handle processing the response from the form login |
boolean |
isAuthSupported(org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.HttpMethod httpMethod) Determine if the current handler can handle the given response to the auth scheme |
int |
sendAuthenticatedRequest() Send the authenticated request to the Content Server |
void |
setHttpClient(org.apache.commons.httpclient.HttpClient httpClient) |
void |
setPingMethod(org.apache.commons.httpclient.HttpMethod pingMethod) |
protected void |
throwFormValidateException(org.apache.commons.httpclient.methods.PostMethod postMethod) Throw the form validation exception |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormAuthHandler(IdcHttpProtocol httpProtocol)
Method Detail |
---|
public IdcHttpProtocol getHttpProtocol()
public org.apache.commons.httpclient.HttpClient getHttpClient()
public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
public org.apache.commons.httpclient.HttpMethod getPingMethod()
public void setPingMethod(org.apache.commons.httpclient.HttpMethod pingMethod)
public boolean isAuthSupported(org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.HttpMethod httpMethod)
isAuthSupported
in interface AuthenticationHandler
httpClient
- the http client that was used to invoke the pinghttpMethod
- the http method that was used to invoke the pingpublic IdcContext.HttpAuthScheme getAuthScheme()
getAuthScheme
in interface AuthenticationHandler
public int sendAuthenticatedRequest() throws ProtocolException
sendAuthenticatedRequest
in interface AuthenticationHandler
ProtocolException
protected void handleFormLogin() throws ProtocolException
ProtocolException
- if a login error occursprotected org.apache.commons.httpclient.HttpClient createHttpClient()
protected int executeLogin(org.apache.commons.httpclient.methods.PostMethod postMethod) throws ProtocolException
postMethod
- the post methodProtocolException
protected org.apache.commons.httpclient.methods.PostMethod createLoginMethod() throws ProtocolException
ProtocolException
protected java.lang.String getLoginFormPath(IdcContext.LoginForm loginForm) throws ProtocolException
loginForm
- the login formProtocolException
protected IdcContext.LoginForm getLoginForm()
protected void handleFormResponse(org.apache.commons.httpclient.methods.PostMethod postMethod, int status) throws ProtocolException
postMethod
- the post methodstatus
- the status of the postProtocolException
- if the POST was invalidprotected void throwFormValidateException(org.apache.commons.httpclient.methods.PostMethod postMethod) throws ProtocolException
postMethod
- the post methodProtocolException
|
Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1.1) E17274-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |