org.wso2.carbon.integration.common.utils
Class LoginLogoutClient
java.lang.Object
org.wso2.carbon.integration.common.utils.LoginLogoutClient
public class LoginLogoutClient
- extends Object
A utility for logging into & logging out of Carbon servers
|
Constructor Summary |
LoginLogoutClient(org.wso2.carbon.automation.engine.context.AutomationContext context)
|
|
Method Summary |
String |
login()
Log in to a Carbon server |
void |
logout()
Log out from carbon server |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoginLogoutClient
public LoginLogoutClient(org.wso2.carbon.automation.engine.context.AutomationContext context)
throws MalformedURLException,
XPathExpressionException,
org.apache.axis2.AxisFault
- Throws:
MalformedURLException
XPathExpressionException
org.apache.axis2.AxisFault
login
public String login()
throws org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException,
IOException,
XMLStreamException,
URISyntaxException,
SAXException,
XPathExpressionException
- Log in to a Carbon server
- Returns:
- The session cookie on successful login
- Throws:
org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
IOException
XMLStreamException
URISyntaxException
SAXException
XPathExpressionException
logout
public void logout()
throws org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionException,
RemoteException
- Log out from carbon server
- Throws:
org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionException
RemoteException
Copyright © 2015 WSO2. All rights reserved.