public class SSTClient extends ClientBase
Modifier and Type | Class and Description |
---|---|
protected static class |
SSTClient.WsdlChoice
This is the output of the WSDL/WADL choice.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
LOGGER |
itsConfig
Constructor and Description |
---|
SSTClient(SSTConfig sstConfig)
Constructor
|
Modifier and Type | Method and Description |
---|---|
XmlProcessorLC |
choseXmlProcessor(XmlProcessorLC newProc,
XmlProcessorLC prevProc)
Find the chosen xml processor and return it for update
|
protected WsdlBinding |
constructSdlBinding(java.lang.String wsdlLocator,
java.lang.String wsdlLocatorType,
java.lang.String wsdlBindingQNameLocalName,
java.lang.String wsdlBindingQNameXmlNs,
boolean fullLogging,
boolean isWadl) |
protected java.lang.String |
convertXMLFileToString(java.lang.String filePath) |
protected java.lang.String |
createApplication()
Create a new application
|
protected java.lang.String |
createRESTService() |
java.lang.String |
createRole() |
void |
createRoles() |
protected java.lang.String |
createWebService()
Create WebService
|
protected void |
deleteExamples(java.lang.String serviceGroupID)
Delete a few items that have been created
|
protected void |
deleteExamples(java.lang.String serviceGroupID,
boolean deleteApplication) |
protected void |
displayApplication(Application app)
Create a new application
|
protected void |
displayApplication(java.lang.String appID)
Create a new application
|
protected void |
displayAPSvcOperations(AccessPointNode apnode)
This will dump operations on the AP
|
private void |
displayCertificateInfo(Blob cert,
Credentials cred,
CertificateEncodingType encoding) |
private void |
displayCertificateInfo(CertificateDef opts) |
private void |
displayCertificateInfo(java.lang.String entry) |
void |
displayKeyCertificates() |
protected void |
displaySdl(int level,
WsdlBinding wsdlBinding)
This will dump information about the WSDL/WADL
|
protected void |
displaySvcGroup(SvcGroup group)
This will list all the Service Groups that the user can read
|
protected void |
failed(java.lang.String msg)
Helper function to dump an error message to the console.
|
void |
findServiceGroup()
Find a service group based on name and display the details
|
protected SSTConfig |
getConfig()
Retrieve the config object
|
protected QName |
getQNameFromWsdlBindingDef(WsdlBindingDef wsdlDef) |
protected SdlTask |
getSdlAPITask()
Retrieve SdlTask which is a client side class for simplifying certain WSDL/WADL operations
|
protected void |
listApplications()
This will list all the applications that the user can read
|
protected void |
listExistingTransport()
Create WebService
|
void |
listKeyCertificates() |
protected void |
listSvcGroups()
This will list all the Service Groups that the user can read
|
static void |
main(java.lang.String[] args)
Start of program
|
protected SSTClient.WsdlChoice |
promptForSdl(java.lang.String defaultSDLURL)
Prompt the User for a WSDL/WADL and select the port
|
protected Application |
selectApplication(java.lang.String prompt)
Select one application from the product
|
AuthenticatorLC |
selectAuthenticationPlugin(java.lang.String prompt)
Select an authentication plugin
|
protected Transport |
selectExistingTransport(java.lang.String prompt)
Create WebService
|
CertificateEntry |
selectsKeyCertificate(java.lang.String prompt) |
protected java.lang.String[] |
selectSvcOperations(WsdlBinding wsdlBinding)
Select a list of operation from the given WSDL/WADL binding
|
UserEntity |
selectUserEntity(AuthenticatorLC prov,
java.lang.String prompt) |
void |
test()
This is the method that performs the different actions
|
protected java.lang.String |
toString(QName qname)
Convert the QName to a string
|
void |
updateWebservice(java.lang.String svcGroupID)
Modify the specified service group
|
public SSTClient(SSTConfig sstConfig)
protected SSTConfig getConfig()
protected void failed(java.lang.String msg)
msg
- The message to display.
protected SdlTask getSdlAPITask() throws java.lang.Exception
java.lang.Exception
public void test() throws java.lang.Exception
java.lang.Exception
protected void deleteExamples(java.lang.String serviceGroupID) throws java.lang.Exception
java.lang.Exception
protected void deleteExamples(java.lang.String serviceGroupID, boolean deleteApplication) throws java.lang.Exception
java.lang.Exception
protected java.lang.String createApplication() throws java.lang.Exception
java.lang.Exception
protected Application selectApplication(java.lang.String prompt) throws java.lang.Exception
java.lang.Exception
protected void listApplications() throws java.lang.Exception
java.lang.Exception
protected void displayApplication(java.lang.String appID) throws java.lang.Exception
java.lang.Exception
protected void displayApplication(Application app) throws java.lang.Exception
java.lang.Exception
protected void listExistingTransport() throws java.lang.Exception
java.lang.Exception
protected Transport selectExistingTransport(java.lang.String prompt) throws java.lang.Exception
java.lang.Exception
protected void listSvcGroups() throws java.lang.Exception
java.lang.Exception
protected void displaySvcGroup(SvcGroup group) throws java.lang.Exception
java.lang.Exception
protected void displaySdl(int level, WsdlBinding wsdlBinding) throws java.lang.Exception
java.lang.Exception
protected void displayAPSvcOperations(AccessPointNode apnode) throws java.lang.Exception
java.lang.Exception
protected java.lang.String[] selectSvcOperations(WsdlBinding wsdlBinding) throws java.lang.Exception
java.lang.Exception
protected WsdlBinding constructSdlBinding(java.lang.String wsdlLocator, java.lang.String wsdlLocatorType, java.lang.String wsdlBindingQNameLocalName, java.lang.String wsdlBindingQNameXmlNs, boolean fullLogging, boolean isWadl) throws java.lang.Exception
java.lang.Exception
protected java.lang.String convertXMLFileToString(java.lang.String filePath) throws java.lang.Exception
java.lang.Exception
protected QName getQNameFromWsdlBindingDef(WsdlBindingDef wsdlDef) throws java.lang.Exception
java.lang.Exception
protected java.lang.String toString(QName qname) throws java.lang.Exception
java.lang.Exception
protected SSTClient.WsdlChoice promptForSdl(java.lang.String defaultSDLURL) throws java.lang.Exception
java.lang.Exception
protected java.lang.String createWebService() throws java.lang.Exception
java.lang.Exception
protected java.lang.String createRESTService() throws java.lang.Exception
java.lang.Exception
public void updateWebservice(java.lang.String svcGroupID) throws java.lang.Exception
java.lang.Exception
public XmlProcessorLC choseXmlProcessor(XmlProcessorLC newProc, XmlProcessorLC prevProc) throws java.lang.Exception
java.lang.Exception
public void findServiceGroup() throws java.lang.Exception
java.lang.Exception
public void listKeyCertificates() throws java.lang.Exception
java.lang.Exception
public CertificateEntry selectsKeyCertificate(java.lang.String prompt) throws java.lang.Exception
java.lang.Exception
public void displayKeyCertificates() throws java.lang.Exception
java.lang.Exception
private void displayCertificateInfo(Blob cert, Credentials cred, CertificateEncodingType encoding) throws java.lang.Exception
java.lang.Exception
private void displayCertificateInfo(java.lang.String entry) throws java.lang.Exception
java.lang.Exception
private void displayCertificateInfo(CertificateDef opts) throws java.lang.Exception
java.lang.Exception
public java.lang.String createRole() throws java.lang.Exception
java.lang.Exception
public void createRoles() throws java.lang.Exception
java.lang.Exception
public UserEntity selectUserEntity(AuthenticatorLC prov, java.lang.String prompt) throws java.lang.Exception
java.lang.Exception
public AuthenticatorLC selectAuthenticationPlugin(java.lang.String prompt) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)