public class CGAgentUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.wso2.carbon.cloud.gateway.common.CGServerBean |
getCGServerBean(org.wso2.carbon.registry.api.Resource resource)
Create the
CGServerBean from the registry resource |
static org.apache.axiom.om.OMNode |
getOMElementFromURI(String wsdlURI) |
static String |
getSessionCookie(String serverUrl,
String userName,
String password,
String domainName,
String hostName)
Returns the session cookie given the admin credentials
|
static org.apache.axiom.om.OMElement |
getWSDLElement(String wsdlLocation) |
static boolean |
isClientAxis2XMLExists()
Check if we have a client axis2.xml ( for example in ESB)
|
static void |
persistServer(org.wso2.carbon.registry.core.Registry registry,
org.wso2.carbon.cloud.gateway.common.CGServerBean csgServer)
Persist the server into registry
|
public static String getSessionCookie(String serverUrl, String userName, String password, String domainName, String hostName) throws SocketException, RemoteException, org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
serverUrl
- the server urluserName
- user namepassword
- passworddomainName
- Domain NamehostName
- host name of the remote serverSocketException
- throws in case of a socket exceptionorg.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
- throws in case of a authentication failureRemoteException
- throws in case of a connection failurepublic static org.wso2.carbon.cloud.gateway.common.CGServerBean getCGServerBean(org.wso2.carbon.registry.api.Resource resource) throws org.wso2.carbon.cloud.gateway.common.CGException
CGServerBean
from the registry resourceresource
- the csg server meta information collectionorg.wso2.carbon.cloud.gateway.common.CGException
- throws in case of an errorpublic static void persistServer(org.wso2.carbon.registry.core.Registry registry, org.wso2.carbon.cloud.gateway.common.CGServerBean csgServer) throws org.wso2.carbon.cloud.gateway.common.CGException
registry
- registry instancecsgServer
- csg server instanceorg.wso2.carbon.cloud.gateway.common.CGException
- throws in case of an errorpublic static boolean isClientAxis2XMLExists()
public static org.apache.axiom.om.OMNode getOMElementFromURI(String wsdlURI) throws org.wso2.carbon.cloud.gateway.common.CGException
org.wso2.carbon.cloud.gateway.common.CGException
public static org.apache.axiom.om.OMElement getWSDLElement(String wsdlLocation) throws org.wso2.carbon.cloud.gateway.common.CGException
org.wso2.carbon.cloud.gateway.common.CGException
Copyright © 2021 WSO2. All rights reserved.