Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.axis.server
Class AxisServer  view AxisServer download AxisServer.java

java.lang.Object
  extended byorg.apache.axis.handlers.BasicHandler
      extended byorg.apache.axis.AxisEngine
          extended byorg.apache.axis.server.AxisServer
All Implemented Interfaces:
org.apache.axis.Handler, java.io.Serializable

public class AxisServer
extends org.apache.axis.AxisEngine


Field Summary
private  org.apache.axis.AxisEngine clientEngine
          the AxisClient to be used by outcalling Services
private static AxisServerFactory factory
           
protected static org.apache.commons.logging.Log log
           
private  boolean running
          Is this server active? If this is false, any requests will cause a SOAP Server fault to be generated.
private static org.apache.commons.logging.Log tlog
           
 
Fields inherited from class org.apache.axis.AxisEngine
_hasSafePassword, classCache, config, DEFAULT_ATTACHMENT_IMPL, ENV_ATTACHMENT_DIR, ENV_SERVLET_CONTEXT, ENV_SERVLET_REALPATH, PROP_ATTACHMENT_CLEANUP, PROP_ATTACHMENT_DIR, PROP_ATTACHMENT_IMPLEMENTATION, PROP_BP10_COMPLIANCE, PROP_BYTE_BUFFER_BACKING, PROP_BYTE_BUFFER_CACHE_INCREMENT, PROP_BYTE_BUFFER_RESIDENT_MAX_SIZE, PROP_BYTE_BUFFER_WORK_BUFFER_SIZE, PROP_DEBUG_FILE, PROP_DEBUG_LEVEL, PROP_DEFAULT_CONFIG_CLASS, PROP_DISABLE_PRETTY_XML, PROP_DOMULTIREFS, PROP_DOTNET_SOAPENC_FIX, PROP_EMIT_ALL_TYPES, PROP_ENABLE_NAMESPACE_PREFIX_OPTIMIZATION, PROP_PASSWORD, PROP_SEND_XSI, PROP_SOAP_ALLOWED_VERSION, PROP_SOAP_VERSION, PROP_SYNC_CONFIG, PROP_TWOD_ARRAY_ENCODING, PROP_XML_DECL, PROP_XML_ENCODING, PROP_XML_REUSE_SAX_PARSERS, shouldSaveConfig
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options
 
Constructor Summary
AxisServer()
           
AxisServer(org.apache.axis.EngineConfiguration config)
           
 
Method Summary
 void generateWSDL(org.apache.axis.MessageContext msgContext)
          Obtain WSDL information.
 org.apache.axis.AxisEngine getClientEngine()
          Get this server's client engine.
static AxisServer getServer(java.util.Map environment)
           
private  void initSOAPConstants(org.apache.axis.MessageContext msgContext)
          Extract ans store soap constants info from the envelope
 void invoke(org.apache.axis.MessageContext msgContext)
          Main routine of the AXIS server.
 boolean isRunning()
           
 void start()
          Start the server.
 void stop()
          Stop the server.
 
Methods inherited from class org.apache.axis.AxisEngine
addActorURI, cleanup, getActorURIs, getApplicationSession, getClassCache, getConfig, getCurrentMessageContext, getGlobalRequest, getGlobalResponse, getHandler, getService, getTransport, getTypeMappingRegistry, hasSafePassword, init, normaliseOptions, refreshGlobalOptions, removeActorURI, saveConfiguration, setAdminPassword, setCurrentMessageContext, setShouldSaveConfig
 
Methods inherited from class org.apache.axis.handlers.BasicHandler
canHandleBlock, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

tlog

private static org.apache.commons.logging.Log tlog

factory

private static AxisServerFactory factory

clientEngine

private org.apache.axis.AxisEngine clientEngine
the AxisClient to be used by outcalling Services


running

private boolean running
Is this server active? If this is false, any requests will cause a SOAP Server fault to be generated.

Constructor Detail

AxisServer

public AxisServer()

AxisServer

public AxisServer(org.apache.axis.EngineConfiguration config)
Method Detail

getServer

public static AxisServer getServer(java.util.Map environment)
                            throws org.apache.axis.AxisFault

isRunning

public boolean isRunning()

start

public void start()
Start the server.


stop

public void stop()
Stop the server.


getClientEngine

public org.apache.axis.AxisEngine getClientEngine()
Get this server's client engine. Create it if it does not yet exist.


invoke

public void invoke(org.apache.axis.MessageContext msgContext)
            throws org.apache.axis.AxisFault
Main routine of the AXIS server. In short we locate the appropriate handler for the desired service and invoke() it.


initSOAPConstants

private void initSOAPConstants(org.apache.axis.MessageContext msgContext)
                        throws org.apache.axis.AxisFault
Extract ans store soap constants info from the envelope


generateWSDL

public void generateWSDL(org.apache.axis.MessageContext msgContext)
                  throws org.apache.axis.AxisFault
Description copied from interface: org.apache.axis.Handler
Obtain WSDL information. Some Handlers will implement this by merely setting properties in the MessageContext, others (providers) will take responsibility for doing the "real work" of generating WSDL for a given service.