Methods Summary |
---|
public void | addRole(java.lang.String role)Add a role to the configuration's global list
roles.add(role);
|
public void | configureEngine(org.apache.axis.AxisEngine engine)Configure an AxisEngine. Right now just calls the default
configuration if there is one, since we don't do anything special.
this.engine = engine;
if (defaultConfiguration != null)
defaultConfiguration.configureEngine(engine);
for (Iterator i = services.values().iterator(); i.hasNext(); ) {
((SOAPService)i.next()).setEngine(engine);
}
|
public void | deployService(javax.xml.namespace.QName qname, org.apache.axis.handlers.soap.SOAPService service)
services.put(qname, service);
if (engine != null)
service.setEngine(engine);
|
public void | deployService(java.lang.String name, org.apache.axis.handlers.soap.SOAPService service)
deployService(new QName(null, name), service);
|
public void | deployTransport(javax.xml.namespace.QName qname, org.apache.axis.Handler transport)
transports.put(qname, transport);
|
public void | deployTransport(java.lang.String name, org.apache.axis.Handler transport)
deployTransport(new QName(null, name), transport);
|
public java.util.Iterator | getDeployedServices()Get an enumeration of the services deployed to this engine
ArrayList serviceDescs = new ArrayList();
Iterator i = services.values().iterator();
while (i.hasNext()) {
SOAPService service = (SOAPService)i.next();
serviceDescs.add(service.getServiceDescription());
}
return serviceDescs.iterator();
|
public java.util.Hashtable | getGlobalOptions()Returns the global configuration options.
if (globalOptions != null)
return globalOptions;
if (defaultConfiguration != null)
return defaultConfiguration.getGlobalOptions();
return null;
|
public org.apache.axis.Handler | getGlobalRequest()Returns a global request handler.
if (globalRequest != null)
return globalRequest;
if (defaultConfiguration != null)
return defaultConfiguration.getGlobalRequest();
return null;
|
public org.apache.axis.Handler | getGlobalResponse()Returns a global response handler.
if (globalResponse != null)
return globalResponse;
if (defaultConfiguration != null)
return defaultConfiguration.getGlobalResponse();
return null;
|
public org.apache.axis.Handler | getHandler(javax.xml.namespace.QName qname)
Handler handler = (Handler)handlers.get(qname);
if ((defaultConfiguration != null) && (handler == null))
handler = defaultConfiguration.getHandler(qname);
return handler;
|
public java.util.List | getRoles()Get a list of roles that this engine plays globally. Services
within the engine configuration may also add additional roles.
return roles;
|
public org.apache.axis.handlers.soap.SOAPService | getService(javax.xml.namespace.QName qname)
SOAPService service = (SOAPService)services.get(qname);
if ((defaultConfiguration != null) && (service == null))
service = defaultConfiguration.getService(qname);
return service;
|
public org.apache.axis.handlers.soap.SOAPService | getServiceByNamespaceURI(java.lang.String namespace)Get a service which has been mapped to a particular namespace
SOAPService service = (SOAPService)services.get(new QName("",namespace));
if ((service == null) && (defaultConfiguration != null))
service = defaultConfiguration.getServiceByNamespaceURI(namespace);
return service;
|
public org.apache.axis.Handler | getTransport(javax.xml.namespace.QName qname)
Handler transport = (Handler)transports.get(qname);
if ((defaultConfiguration != null) && (transport == null))
transport = defaultConfiguration.getTransport(qname);
return transport;
|
public org.apache.axis.encoding.TypeMapping | getTypeMapping(java.lang.String encodingStyle)
return (TypeMapping)getTypeMappingRegistry().getTypeMapping(encodingStyle);
|
public org.apache.axis.encoding.TypeMappingRegistry | getTypeMappingRegistry()Get our TypeMappingRegistry. Returns our specific one if we have
one, otherwise the one from our defaultConfiguration. If we don't
have one and also don't have a defaultConfiguration, we create one.
if (tmr != null)
return tmr;
if (defaultConfiguration != null)
return defaultConfiguration.getTypeMappingRegistry();
// No default config, but we need a TypeMappingRegistry...
// (perhaps the TMRs could just be chained?)
tmr = new TypeMappingRegistryImpl();
return tmr;
|
public void | removeRole(java.lang.String role)Remove a role from the configuration's global list
roles.remove(role);
|
public void | setGlobalOptions(java.util.Hashtable options)Set the global options Hashtable
globalOptions = options;
|
public void | setGlobalRequest(org.apache.axis.Handler globalRequest)Set the global request Handler
this.globalRequest = globalRequest;
|
public void | setGlobalResponse(org.apache.axis.Handler globalResponse)Set the global response Handler
this.globalResponse = globalResponse;
|
public void | setRoles(java.util.List roles)Set the global role list for this configuration. Note that we use
the actual passed value, so if anyone else changes that collection,
our role list will change. Be careful to pass this a cloned list if
you want to change the list later without affecting the config.
this.roles = roles;
|
public void | writeEngineConfig(org.apache.axis.AxisEngine engine)We don't write ourselves out, so this is a noop.
|