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, AXIS_STORAGE, AXIS2CONFIG, BEANMAPPINGST, BEFORE, CLASSNAME, CONTEXTPATHNAME, DESCRIPTION, DIPSTCH_ORDER, DIPSTCHER, EXTRACTSERVICEARCHIVE, HANDERST, HOTDEPLOYMENT, HOTUPDATE, IN_FAILTFLOW, INFLOWST, JWS_EXTENSION, LISTENERST, MEP, MESSAGERECEIVER, META_INF, MODULE, MODULE_PATH, MODULECONFIG, MODULEST, MODULEXML, OPRATIONST, ORDER, OUT_FAILTFLOW, OUTFLOWST, PARAMETERST, PHASE, PHASE_ORDER, PHASEFIRST, PHASELAST, PHASEST, REF, SERVICE, SERVICE_ELEMENT, SERVICE_GROUP_ELEMENT, SERVICE_PATH, SERVICETAG, SERVICEWSDL, SERVICEXML, STYLENAME, TRANSPORTRECEIVER, TRANSPORTSENDER, TRANSPORTSTAG, TRANSPORTTAG, TYPE, TYPEMAPPINGST
 
Constructor Summary
ArchiveReader()
           
 
Method Summary
 ServiceDescription createService(ArchiveFileData file)
          To create a ServiceDescrption ServiceDescription using given wsdl , if the service.wsdl there in the arcive file ServiceDescription will be creted using that else default ServiceDescription will be crated
 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
 void processServiceGroup(java.lang.String filename, DeploymentEngine engine, ServiceGroupDescription serviceGroupDesc, boolean extarctService)
          This method will readServiceArchive the given jar or aar.
 void 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)
           
 
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

createService

public ServiceDescription createService(ArchiveFileData file)
                                 throws DeploymentException
To create a ServiceDescrption ServiceDescription using given wsdl , if the service.wsdl there in the arcive file ServiceDescription will be creted using that else default ServiceDescription will be crated

Parameters:
file -
Returns:
Throws:
DeploymentException

processWSDLs

public void 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 void processServiceGroup(java.lang.String filename,
                                DeploymentEngine engine,
                                ServiceGroupDescription serviceGroupDesc,
                                boolean extarctService)
                         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)
                       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