bexee.admin
Class Admin

java.lang.Object
  extended bybexee.admin.Admin

public class Admin
extends java.lang.Object

This class acts as a convenient Java front-end for the Managerclass instead of calling the Manager web service directly.

Version:
$Revision: 1.1 $, $Date: 2004/12/15 14:18:08 $
Author:
Patric Fornasier, Pawel Kowalski

Constructor Summary
Admin()
          Create an instance of the Admin
Admin(java.lang.String url)
          Create an instance of the Admin with a give URL where bexee is located.
 
Method Summary
protected  java.lang.String[] buildInputArray(java.io.InputStream bpel, java.io.InputStream wsdl, java.util.List partnerWSDL)
           
protected  org.apache.axis.client.Call createCall(java.lang.String operation)
          Create Axis call to service.
 java.lang.String deploy(java.io.File bpel, java.io.File wsdl)
          Deploy a BPEL business process together with its WSDL.
 java.lang.String deploy(java.io.File bpel, java.io.File wsdl, java.io.File partnerWSDL)
          Deploy a BPEL business process together with its WSDL and one partner WSDL description.
 java.lang.String deploy(java.io.File bpel, java.io.File wsdl, java.util.List partnerWSDL)
          Deploy a BPEL business process together with its WSDL and its partner WSDL descriptions.
 java.lang.String deploy(java.io.InputStream bpel, java.io.InputStream wsdl)
          Deploy a BPEL business process together with its WSDL.
 java.lang.String deploy(java.io.InputStream bpel, java.io.InputStream wsdl, java.io.InputStream partnerWSDL)
          Deploys a new BPEL process to bexee.
 java.lang.String deploy(java.io.InputStream bpel, java.io.InputStream wsdl, java.util.List partnerWSDL)
          Deploys a new BPEL process to bexee.This method will invoke the Manager web service and pass it the documents.
protected  java.lang.String getString(java.io.InputStream is)
          Copies an InputStream into a String.
 java.lang.String undeploy(java.lang.String name)
          Undeploys an existing service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Admin

public Admin()
Create an instance of the Admin


Admin

public Admin(java.lang.String url)
Create an instance of the Admin with a give URL where bexee is located.

Parameters:
url - bexee location
Method Detail

deploy

public java.lang.String deploy(java.io.File bpel,
                               java.io.File wsdl)
                        throws AdminException
Deploy a BPEL business process together with its WSDL.

Parameters:
bpel - BPEL document
wsdl - WSDL description
Returns:
@throws AdminException
Throws:
AdminException

deploy

public java.lang.String deploy(java.io.InputStream bpel,
                               java.io.InputStream wsdl)
                        throws AdminException
Deploy a BPEL business process together with its WSDL.

Parameters:
bpel - BPEL document stream
wsdl - WSDL description stream
Returns:
@throws AdminException
Throws:
AdminException

deploy

public java.lang.String deploy(java.io.File bpel,
                               java.io.File wsdl,
                               java.io.File partnerWSDL)
                        throws AdminException
Deploy a BPEL business process together with its WSDL and one partner WSDL description.

Parameters:
bpel - BPEL document
wsdl - WSDL description
partnerWSDL - partner WSDL description
Returns:
@throws AdminException
Throws:
AdminException

deploy

public java.lang.String deploy(java.io.File bpel,
                               java.io.File wsdl,
                               java.util.List partnerWSDL)
                        throws AdminException
Deploy a BPEL business process together with its WSDL and its partner WSDL descriptions.

Parameters:
bpel - BPEL document
wsdl - WSDL description
partnerWSDL - partner WSDL descriptions
Returns:
@throws AdminException
Throws:
AdminException

deploy

public java.lang.String deploy(java.io.InputStream bpel,
                               java.io.InputStream wsdl,
                               java.io.InputStream partnerWSDL)
                        throws AdminException
Deploys a new BPEL process to bexee.

Throws:
AdminException
See Also:
deploy(InputStream, InputStream, List)

deploy

public java.lang.String deploy(java.io.InputStream bpel,
                               java.io.InputStream wsdl,
                               java.util.List partnerWSDL)
                        throws AdminException
Deploys a new BPEL process to bexee.This method will invoke the Manager web service and pass it the documents.

Parameters:
bpel -
wsdl -
partnerWSDL -
Returns:
@throws AdminException
Throws:
AdminException

undeploy

public java.lang.String undeploy(java.lang.String name)
                          throws AdminException
Undeploys an existing service

Parameters:
name - the name of the service to be undeployed
Returns:
the message from the Manager service
Throws:
AdminException - if something went wrong
See Also:
{@link Manager}

createCall

protected org.apache.axis.client.Call createCall(java.lang.String operation)
                                          throws AdminException
Create Axis call to service.

Returns:
a Call object
Throws:
AdminException - if the Call can not be created

buildInputArray

protected java.lang.String[] buildInputArray(java.io.InputStream bpel,
                                             java.io.InputStream wsdl,
                                             java.util.List partnerWSDL)
                                      throws java.io.IOException
Throws:
java.io.IOException

getString

protected java.lang.String getString(java.io.InputStream is)
                              throws java.io.IOException
Copies an InputStream into a String.

Parameters:
is - the InputStream to be read from.
Returns:
a String
Throws:
java.io.IOException - in case of an I/O problem


Copyright © 2004 Berne University of Applied Sciences. All Rights Reserved.