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

FileProvider (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.configuration
Class FileProvider

java.lang.Object
  extended byorg.apache.axis.configuration.FileProvider
All Implemented Interfaces:
EngineConfiguration, WSDDEngineConfiguration
Direct Known Subclasses:
XMLStringProvider

public class FileProvider
extends Object
implements WSDDEngineConfiguration

A simple ConfigurationProvider that uses the Admin class to read + write XML files.

Author:
Glen Daniels (gdaniels@macromedia.com), Glyn Normington (glyn@apache.org)

Field Summary
 
Fields inherited from interface org.apache.axis.EngineConfiguration
PROPERTY_NAME
 
Constructor Summary
FileProvider(InputStream is)
          Constructor which takes an input stream directly.
FileProvider(String filename)
          Constructor which accesses a file in the current directory of the engine or at an absolute path.
FileProvider(String basepath, String filename)
          Constructor which accesses a file relative to a specific base path.
 
Method Summary
 void configureEngine(AxisEngine engine)
          Configure this AxisEngine using whatever data source we have.
 Iterator getDeployedServices()
          Get an enumeration of the services deployed to this engine
 WSDDDeployment getDeployment()
           
 Hashtable getGlobalOptions()
          Returns the global configuration options.
 Handler getGlobalRequest()
          Returns a global request handler.
 Handler getGlobalResponse()
          Returns a global response handler.
 Handler getHandler(javax.xml.namespace.QName qname)
          retrieve an instance of the named handler
 SOAPService getService(javax.xml.namespace.QName qname)
          retrieve an instance of the named service
 SOAPService getServiceByNamespaceURI(String namespace)
          Get a service which has been mapped to a particular namespace
 Handler getTransport(javax.xml.namespace.QName qname)
          retrieve an instance of the named transport
 TypeMappingRegistry getTypeMappingRegistry()
          Retrieve the TypeMappingRegistry for this engine
 void setDeployment(WSDDDeployment deployment)
           
 void setInputStream(InputStream is)
           
 void setSearchClasspath(boolean searchClasspath)
          Determine whether or not we will look for a "*-config.wsdd" file on the classpath if we don't find it in the specified location.
 void writeEngineConfig(AxisEngine engine)
          Save the engine configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileProvider

public FileProvider(String filename)
Constructor which accesses a file in the current directory of the engine or at an absolute path.


FileProvider

public FileProvider(String basepath,
                    String filename)
             throws ConfigurationException
Constructor which accesses a file relative to a specific base path.


FileProvider

public FileProvider(InputStream is)
Constructor which takes an input stream directly. Note: The configuration will be read-only in this case!

Method Detail

setInputStream

public void setInputStream(InputStream is)

getDeployment

public WSDDDeployment getDeployment()
Specified by:
getDeployment in interface WSDDEngineConfiguration

setDeployment

public void setDeployment(WSDDDeployment deployment)

setSearchClasspath

public void setSearchClasspath(boolean searchClasspath)
Determine whether or not we will look for a "*-config.wsdd" file on the classpath if we don't find it in the specified location.

Parameters:
searchClasspath - true if we should search the classpath

configureEngine

public void configureEngine(AxisEngine engine)
                     throws ConfigurationException
Description copied from interface: EngineConfiguration
Configure this AxisEngine using whatever data source we have.

Specified by:
configureEngine in interface EngineConfiguration
Parameters:
engine - the AxisEngine we'll deploy state to
Throws:
ConfigurationException - if there was a problem

writeEngineConfig

public void writeEngineConfig(AxisEngine engine)
                       throws ConfigurationException
Save the engine configuration. In case there's a problem, we write it to a string before saving it out to the actual file so we don't screw up the file.

Specified by:
writeEngineConfig in interface EngineConfiguration
Parameters:
engine - the AxisEngine from which to read state.
Throws:
ConfigurationException - if there was a problem

getHandler

public Handler getHandler(javax.xml.namespace.QName qname)
                   throws ConfigurationException
retrieve an instance of the named handler

Specified by:
getHandler in interface EngineConfiguration
Parameters:
qname - XXX
Returns:
XXX
Throws:
ConfigurationException - XXX

getService

public SOAPService getService(javax.xml.namespace.QName qname)
                       throws ConfigurationException
retrieve an instance of the named service

Specified by:
getService in interface EngineConfiguration
Parameters:
qname - XXX
Returns:
XXX
Throws:
ConfigurationException - XXX

getServiceByNamespaceURI

public SOAPService getServiceByNamespaceURI(String namespace)
                                     throws ConfigurationException
Get a service which has been mapped to a particular namespace

Specified by:
getServiceByNamespaceURI in interface EngineConfiguration
Parameters:
namespace - a namespace URI
Returns:
an instance of the appropriate Service, or null
Throws:
ConfigurationException

getTransport

public Handler getTransport(javax.xml.namespace.QName qname)
                     throws ConfigurationException
retrieve an instance of the named transport

Specified by:
getTransport in interface EngineConfiguration
Parameters:
qname - XXX
Returns:
XXX
Throws:
ConfigurationException - XXX

getTypeMappingRegistry

public TypeMappingRegistry getTypeMappingRegistry()
                                           throws ConfigurationException
Description copied from interface: EngineConfiguration
Retrieve the TypeMappingRegistry for this engine

Specified by:
getTypeMappingRegistry in interface EngineConfiguration
Throws:
ConfigurationException

getGlobalRequest

public Handler getGlobalRequest()
                         throws ConfigurationException
Returns a global request handler.

Specified by:
getGlobalRequest in interface EngineConfiguration
Throws:
ConfigurationException

getGlobalResponse

public Handler getGlobalResponse()
                          throws ConfigurationException
Returns a global response handler.

Specified by:
getGlobalResponse in interface EngineConfiguration
Throws:
ConfigurationException

getGlobalOptions

public Hashtable getGlobalOptions()
                           throws ConfigurationException
Returns the global configuration options.

Specified by:
getGlobalOptions in interface EngineConfiguration
Throws:
ConfigurationException

getDeployedServices

public Iterator getDeployedServices()
                             throws ConfigurationException
Get an enumeration of the services deployed to this engine

Specified by:
getDeployedServices in interface EngineConfiguration
Returns:
something to iterate with
Throws:
ConfigurationException
See Also:
ServiceDesc


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