|
Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1) E17274-03 |
|||||||||
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 RIDCHttpClient |
createHttpClient() |
protected RIDCHttpPostMethod |
createLoginMethod() Create the post method for the login operation |
protected int |
executeLogin(RIDCHttpPostMethod postMethod) Execute the login method |
IdcContext.HttpAuthScheme |
getAuthScheme() |
RIDCHttpClient |
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 |
RIDCHttpMethod |
getPingMethod() |
protected void |
handleFormLogin() Handle logging into the Content Server via a login form |
protected void |
handleFormResponse(RIDCHttpMethod postMethod, int status) Handle processing the response from the form login |
boolean |
isAuthSupported(RIDCHttpClient httpClient, RIDCHttpMethod 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(RIDCHttpClient httpClient) |
void |
setPingMethod(RIDCHttpMethod pingMethod) |
protected void |
throwFormValidateException(RIDCHttpMethod 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 RIDCHttpClient getHttpClient() throws ProtocolException
ProtocolException
public void setHttpClient(RIDCHttpClient httpClient)
public RIDCHttpMethod getPingMethod()
public void setPingMethod(RIDCHttpMethod pingMethod)
public boolean isAuthSupported(RIDCHttpClient httpClient, RIDCHttpMethod httpMethod) throws ProtocolException
isAuthSupported
in interface AuthenticationHandler
httpClient
- the http client that was used to invoke the pinghttpMethod
- the http method that was used to invoke the pingProtocolException
public IdcContext.HttpAuthScheme getAuthScheme()
getAuthScheme
in interface AuthenticationHandler
public int sendAuthenticatedRequest() throws ProtocolException
sendAuthenticatedRequest
in interface AuthenticationHandler
IdcClientException
ProtocolException
protected void handleFormLogin() throws ProtocolException
IdcClientException
ProtocolException
protected RIDCHttpClient createHttpClient() throws ProtocolException
IdcClientException
java.net.URISyntaxException
ProtocolException
protected int executeLogin(RIDCHttpPostMethod postMethod) throws ProtocolException
postMethod
- the post methodProtocolException
protected RIDCHttpPostMethod createLoginMethod() throws ProtocolException
IdcClientException
ProtocolException
protected java.lang.String getLoginFormPath(IdcContext.LoginForm loginForm) throws ProtocolException
loginForm
- the login formProtocolException
protected IdcContext.LoginForm getLoginForm()
protected void handleFormResponse(RIDCHttpMethod postMethod, int status) throws ProtocolException
postMethod
- the post methodstatus
- the status of the postIdcClientException
ProtocolException
protected void throwFormValidateException(RIDCHttpMethod postMethod) throws ProtocolException
postMethod
- the post methodProtocolException
|
Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1) E17274-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |