org.apache.axis2.deployment.repository.util
Class ArchiveReader

java.lang.Object
  extended byorg.apache.axis2.deployment.repository.util.ArchiveReader
All Implemented Interfaces:
DeploymentConstants

public class ArchiveReader
extends Object
implements DeploymentConstants


Field Summary
 
Fields inherited from interface org.apache.axis2.deployment.DeploymentConstants
ATTRIBUTE_DEFAULT_VERSION, ATTRIBUTE_LOCKED, ATTRIBUTE_NAME, ATTRIBUTE_SCOPE, AXIS2_CONFIGURATION_RESOURCE, AXIS2_CONFIGURATION_XML, BOOLEAN_FALSE, BOOLEAN_TRUE, DIRECTORY_AXIS2_HOME, DIRECTORY_MODULES, DIRECTORY_SERVICES, META_INF, MODULE_PATH, MODULE_XML, POLICY_NS_URI, PROPERTY_TEMP_DIR, RESOURCE_MODULES, SEPARATOR_COLON, SEPARATOR_DOT, SERVICE_PATH, SERVICES_XML, SUFFIX_JAR, SUFFIX_MAR, SUFFIX_WSDL, TAG_AFTER, TAG_BEFORE, TAG_CLASS_NAME, TAG_DEFAULT_MODULE_VERSION, TAG_DESCRIPTION, TAG_DISPATCH_ORDER, TAG_DISPATCHER, TAG_EXTRACT_SERVICE_ARCHIVE, TAG_FLOW_IN, TAG_FLOW_IN_FAULT, TAG_FLOW_OUT, TAG_FLOW_OUT_FAULT, TAG_HANDLER, TAG_HOST_CONFIG, TAG_HOT_DEPLOYMENT, TAG_HOT_UPDATE, TAG_LABEL, TAG_LISTENER, TAG_MEP, TAG_MESSAGE, TAG_MESSAGE_RECEIVER, TAG_MESSAGE_RECEIVERS, TAG_MODULE, TAG_MODULE_CONFIG, TAG_OPERATION, TAG_ORDER, TAG_PARAMETER, TAG_PHASE, TAG_PHASE_FIRST, TAG_PHASE_LAST, TAG_PHASE_ORDER, TAG_POLICY, TAG_POLICY_REF, TAG_REFERENCE, TAG_SERVICE, TAG_SERVICE_GROUP, TAG_TRANSPORT_RECEIVER, TAG_TRANSPORT_SENDER, TAG_TYPE, TYPE_MODULE, TYPE_SERVICE
 
Constructor Summary
ArchiveReader()
           
 
Method Summary
 File creatModuleArchivefromResource(String moduleName, String axis2repository)
          Creates the module file archive file.
 ArrayList processServiceGroup(String filename, DeploymentEngine engine, AxisServiceGroup axisServiceGroup, boolean extractService, HashMap wsdls, AxisConfiguration axisConfig)
          Extracts Service XML files and builds the service groups.
 HashMap processWSDLs(ArchiveFileData file, DeploymentEngine depengine)
          Creates service objects from wsdl file inside a service archive file.
 void readModuleArchive(String filename, DeploymentEngine engine, ModuleDescription module, boolean explodedDir, AxisConfiguration axisConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveReader

public ArchiveReader()
Method Detail

creatModuleArchivefromResource

public File creatModuleArchivefromResource(String moduleName,
                                           String axis2repository)
                                    throws DeploymentException
Creates the module file archive file. Checks whether the module exists in home directory. If yes, returns that else reads the given module from classpath (from resources). If found, gets the module.mar file from the resource stream and writes into the userhome/axis2home/module directory.

Parameters:
moduleName -
Returns:
Returns File.
Throws:
DeploymentException

processServiceGroup

public ArrayList processServiceGroup(String filename,
                                     DeploymentEngine engine,
                                     AxisServiceGroup axisServiceGroup,
                                     boolean extractService,
                                     HashMap wsdls,
                                     AxisConfiguration axisConfig)
                              throws DeploymentException
Extracts Service XML files and builds the service groups.

Parameters:
filename -
engine -
axisServiceGroup -
extractService -
wsdls -
axisConfig -
Returns:
Returns ArrayList.
Throws:
DeploymentException

processWSDLs

public HashMap processWSDLs(ArchiveFileData file,
                            DeploymentEngine depengine)
                     throws DeploymentException
Creates service objects from wsdl file inside a service archive file.

Parameters:
file - ArchiveFileData
depengine - DeploymentEngine
Throws:
DeploymentException - DeploymentException

readModuleArchive

public void readModuleArchive(String filename,
                              DeploymentEngine engine,
                              ModuleDescription module,
                              boolean explodedDir,
                              AxisConfiguration axisConfig)
                       throws DeploymentException
Throws:
DeploymentException