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 java.lang.Object
implements DeploymentConstants


Field Summary
 
Fields inherited from interface org.apache.axis2.deployment.DeploymentConstants
AFTER, ATQNAME, ATTLOCKED, ATTNAME, ATUSE, AXIS2CONFIG, BEANMAPPINGST, BEFORE, CLASSNAME, CONTEXTPATHNAME, DESCRIPTION, DISPATCH_ORDER, DISPATCHER, EXTRACTSERVICEARCHIVE, HANDERST, HOST_CONFIG, HOTDEPLOYMENT, HOTUPDATE, IN_FAILTFLOW, INFLOWST, JWS_EXTENSION, LABEL, LISTENERST, MEP, MESSAGERECEIVER, MESSGES, META_INF, MODULE, MODULE_PATH, MODULECONFIG, MODULEST, MODULEXML, OPRATIONST, ORDER, OUT_FAILTFLOW, OUTFLOWST, PARAMETER, PHASE, PHASE_ORDER, PHASEFIRST, PHASELAST, PHASEST, REF, SERVICE, SERVICE_ELEMENT, SERVICE_GROUP_ELEMENT, SERVICE_PATH, SERVICE_WSDL_NAME, SERVICE_WSDL_WITH_FOLDER, SERVICETAG, SERVICEXML, STYLENAME, TRANSPORTRECEIVER, TRANSPORTSENDER, TRANSPORTSTAG, TRANSPORTTAG, TYPE, TYPEMAPPINGST
 
Constructor Summary
ArchiveReader()
           
 
Method Summary
 java.io.File creatModuleArchivefromResource(java.lang.String moduleName, java.lang.String axis2repository)
          This method first check whether the given module is there in the user home dirctory if so return that , else try to read the given module form classpath (from resources ) if found first get the module.mar file from the resourceStream and write that into user home/axis2home/nodule directory
 java.util.ArrayList processServiceGroup(java.lang.String filename, DeploymentEngine engine, AxisServiceGroup axisServiceGroup, boolean extractService, java.util.HashMap wsdls, AxisConfiguration axisConfig)
          This method will readServiceArchive the given jar or aar.
 java.util.HashMap processWSDLs(ArchiveFileData file, DeploymentEngine depengine)
          To create service objects out form wsdls file inside a service archive file
 void readModuleArchive(java.lang.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

processWSDLs

public java.util.HashMap processWSDLs(ArchiveFileData file,
                                      DeploymentEngine depengine)
                               throws DeploymentException
To create service objects out form wsdls file inside a service archive file

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

processServiceGroup

public java.util.ArrayList processServiceGroup(java.lang.String filename,
                                               DeploymentEngine engine,
                                               AxisServiceGroup axisServiceGroup,
                                               boolean extractService,
                                               java.util.HashMap wsdls,
                                               AxisConfiguration axisConfig)
                                        throws DeploymentException
This method will readServiceArchive the given jar or aar. it take two arguments filename and refereance to DeployEngine

Parameters:
filename -
engine -
Throws:
DeploymentException

readModuleArchive

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

creatModuleArchivefromResource

public java.io.File creatModuleArchivefromResource(java.lang.String moduleName,
                                                   java.lang.String axis2repository)
                                            throws DeploymentException
This method first check whether the given module is there in the user home dirctory if so return that , else try to read the given module form classpath (from resources ) if found first get the module.mar file from the resourceStream and write that into user home/axis2home/nodule directory

Parameters:
moduleName -
Returns:
Throws:
DeploymentException