站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 webservice API Documentation 英文版文档

AxisService (JBossWS API) - JBoss 4.0.1 sp1 webservice API Documentation 英文版文档


org.jboss.webservice
Class AxisService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.webservice.AxisService
All Implemented Interfaces:
AxisServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class AxisService
extends org.jboss.system.ServiceMBeanSupport
implements AxisServiceMBean

A service that keeps track of the Axis server and client engine and can deploy/undeploy services to/from Axis using the Axis wsdd format.

Internally it keeps a registry of deployed PortComponentInfo objects. The key into that registry is [deploymentName]#[port-component-name]

Since:
15-April-2004
Author:
Thomas.Diesler@jboss.org

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.webservice.AxisServiceMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
AxisService()
           
 
Method Summary
 void deployService(PortComponentInfo pcInfo)
          Deploy a webservice from a Axis WSDD URL
 org.apache.axis.server.AxisServer getAxisServer()
          Get axis server singleton
 String getInvokerProviderEJB()
           
 String getInvokerProviderJSE()
           
 MetaDataRegistry getMetaDataRegistry()
          Get MetaDataBeanSerializer/Deserializer metaData registry
 PortComponentInfo getPortComponentInfo(String wsID)
          Get port component info for a given web service id The keys into the registry are: [deploment.ear]/[deployment.?ar]#PortComponentName A client deployment may use a 'port-component-link' like: [deployment.?ar]#PortComponentName In case we don't find a direct match we try matching by key.endsWith(wsID) See CTS test: /com/sun/ts/tests/webservices/deploy/portcomplink
 String getWebServiceHost()
           
 int getWebServicePort()
           
 int getWebServiceSecurePort()
           
 String listServices()
          List the registered webservices
 void setInvokerProviderEJB(String invokerProviderEJB)
           
 void setInvokerProviderJSE(String invokerProviderJSE)
           
 void setWebServiceHost(String host)
           
 void setWebServicePort(int port)
           
 void setWebServiceSecurePort(int port)
           
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
protected  void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 void undeployService(String serviceID)
          Undeploy a webservice for a given web service id
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

AxisService

public AxisService()
Method Detail

startService

protected void startService()
                     throws Exception
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Throws:
Exception

getWebServiceHost

public String getWebServiceHost()
Specified by:
getWebServiceHost in interface AxisServiceMBean

getWebServicePort

public int getWebServicePort()
Specified by:
getWebServicePort in interface AxisServiceMBean

getWebServiceSecurePort

public int getWebServiceSecurePort()
Specified by:
getWebServiceSecurePort in interface AxisServiceMBean

setWebServiceHost

public void setWebServiceHost(String host)
Specified by:
setWebServiceHost in interface AxisServiceMBean

setWebServicePort

public void setWebServicePort(int port)
Specified by:
setWebServicePort in interface AxisServiceMBean

setWebServiceSecurePort

public void setWebServiceSecurePort(int port)
Specified by:
setWebServiceSecurePort in interface AxisServiceMBean

getInvokerProviderEJB

public String getInvokerProviderEJB()
Specified by:
getInvokerProviderEJB in interface AxisServiceMBean

setInvokerProviderEJB

public void setInvokerProviderEJB(String invokerProviderEJB)
Specified by:
setInvokerProviderEJB in interface AxisServiceMBean

getInvokerProviderJSE

public String getInvokerProviderJSE()
Specified by:
getInvokerProviderJSE in interface AxisServiceMBean

setInvokerProviderJSE

public void setInvokerProviderJSE(String invokerProviderJSE)
Specified by:
setInvokerProviderJSE in interface AxisServiceMBean

getAxisServer

public org.apache.axis.server.AxisServer getAxisServer()
Get axis server singleton

Specified by:
getAxisServer in interface AxisServiceMBean

getMetaDataRegistry

public MetaDataRegistry getMetaDataRegistry()
Get MetaDataBeanSerializer/Deserializer metaData registry

Specified by:
getMetaDataRegistry in interface AxisServiceMBean

getPortComponentInfo

public PortComponentInfo getPortComponentInfo(String wsID)
Get port component info for a given web service id The keys into the registry are: [deploment.ear]/[deployment.?ar]#PortComponentName A client deployment may use a 'port-component-link' like: [deployment.?ar]#PortComponentName In case we don't find a direct match we try matching by key.endsWith(wsID) See CTS test: /com/sun/ts/tests/webservices/deploy/portcomplink

Specified by:
getPortComponentInfo in interface AxisServiceMBean
Parameters:
wsID - The web service identifier
Returns:
The port component info, or null

listServices

public String listServices()
List the registered webservices

Specified by:
listServices in interface AxisServiceMBean

deployService

public void deployService(PortComponentInfo pcInfo)
                   throws Exception
Deploy a webservice from a Axis WSDD URL

Specified by:
deployService in interface AxisServiceMBean
Throws:
Exception

undeployService

public void undeployService(String serviceID)
                     throws Exception
Undeploy a webservice for a given web service id

Specified by:
undeployService in interface AxisServiceMBean
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.