Tabnine Logo
DeploymentFileData.getAbsolutePath
Code IndexAdd Tabnine to your IDE (free)

How to use
getAbsolutePath
method
in
org.apache.axis2.deployment.repository.util.DeploymentFileData

Best Java code snippets using org.apache.axis2.deployment.repository.util.DeploymentFileData.getAbsolutePath (Showing top 20 results out of 315)

origin: org.apache.axis2/axis2-kernel

public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException {
  deploymentFileDataMap.put(deploymentFileData.getAbsolutePath(), deploymentFileData);
}
origin: apache/axis2-java

public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException {
  deploymentFileDataMap.put(deploymentFileData.getAbsolutePath(), deploymentFileData);
}
origin: org.wso2.carbon.mediation/org.wso2.carbon.event.sink

  inputStream = new BufferedInputStream(new FileInputStream(new File(deploymentFileData.getAbsolutePath())));
  XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(inputStream);
  StAXOMBuilder builder = new StAXOMBuilder(reader);
  log.info("Deploying event sink: " + eventSinkName + " - file: " + deploymentFileData.getAbsolutePath());
} catch (FileNotFoundException e) {
  throw new DeploymentException(
      "Deployment artifact file \"" + deploymentFileData.getAbsolutePath() + "\" not found", e);
} catch (XMLStreamException e) {
  throw new DeploymentException(
      "Event sink XML in \"" + deploymentFileData.getAbsolutePath() + "\" is malformed", e);
} catch (EventSinkException e) {
  throw new DeploymentException(
      "Event sink configuration in \"" + deploymentFileData.getAbsolutePath() + "\" is invalid", e);
} finally {
  if (inputStream != null) {
    } catch (IOException e) {
      log.warn("Failed to close file input stream after deploying event sink from file "
           + deploymentFileData.getAbsolutePath());
origin: apache/axis2-java

try {           
  List<String> classList = null;
  if(DeploymentFileData.isServiceArchiveFile(deploymentFileData.getAbsolutePath())){
    FileInputStream fin = new FileInputStream(deploymentFileData.getAbsolutePath());
    try {
      ZipInputStream zin = new ZipInputStream(fin);
origin: wso2/wso2-synapse

/**
 * This will be called when there is a change in the specified deployment
 * folder (in the axis2.xml) and this will register class loader into the deployement store
 *
 * @param deploymentFileData - describes the updated file
 * @throws DeploymentException - in case an error on the deployment
 */
public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException {
  String mediatorPath = FilenameUtils.normalize(deploymentFileData.getAbsolutePath());
  log.info("Deploying Class mediators from file : " + mediatorPath);
  ClassLoader mediatorLoader = Utils.getClassLoader(ClassMediatorDeployer.class.getClassLoader(),
                           mediatorPath, false);
  getDeploymentStore().addClassMediatorClassLoader(mediatorPath, mediatorLoader);
}
origin: org.apache.axis2/axis2-kernel

try {           
  List<String> classList = null;
  if(DeploymentFileData.isServiceArchiveFile(deploymentFileData.getAbsolutePath())){
    FileInputStream fin = new FileInputStream(deploymentFileData.getAbsolutePath());
    try {
      ZipInputStream zin = new ZipInputStream(fin);
origin: org.wso2.carbon.event-processing/org.wso2.carbon.event.processor.core

/**
 * Reads the query-plan.siddhiql and deploys it.
 *
 * @param deploymentFileData information about query plan
 * @throws org.apache.axis2.deployment.DeploymentException
 */
public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException {
  try {
    String path = deploymentFileData.getAbsolutePath();
    if (!deployedExecutionPlanFilePaths.contains(path)) {
      try {
        processDeploy(deploymentFileData);
      } catch (ExecutionPlanConfigurationException e) {
        throw new DeploymentException("Execution plan not deployed properly.", e);
      }
    } else {
      log.debug("Execution plan file is already deployed :" + path);
      deployedExecutionPlanFilePaths.remove(path);
    }
  } catch (Throwable t) {
    log.error("Can't deploy the execution plan: " + deploymentFileData.getName(), t);
    throw new DeploymentException("Can't deploy the execution plan: " + deploymentFileData.getName(), t);
  }
}
origin: org.apache.axis2/axis2-kernel

FileInputStream fin;
try {
  fin = new FileInputStream(deploymentFile.getAbsolutePath());
  zin = new ZipInputStream(fin);
  ZipEntry entry;
        Messages.getMessage(
            DeploymentErrorMsgs.MODULE_XML_MISSING,
            deploymentFile.getAbsolutePath()));
File file = new File(deploymentFile.getAbsolutePath(), MODULE_XML);
  (file = new File(deploymentFile.getAbsolutePath(), MODULE_XML.toLowerCase()))
      .exists()) {
  InputStream in = null;
      Messages.getMessage(
          DeploymentErrorMsgs.MODULE_XML_MISSING,
          deploymentFile.getAbsolutePath()));
origin: apache/axis2-java

FileInputStream fin;
try {
  fin = new FileInputStream(deploymentFile.getAbsolutePath());
  zin = new ZipInputStream(fin);
  ZipEntry entry;
        Messages.getMessage(
            DeploymentErrorMsgs.MODULE_XML_MISSING,
            deploymentFile.getAbsolutePath()));
File file = new File(deploymentFile.getAbsolutePath(), MODULE_XML);
  (file = new File(deploymentFile.getAbsolutePath(), MODULE_XML.toLowerCase()))
      .exists()) {
  InputStream in = null;
      Messages.getMessage(
          DeploymentErrorMsgs.MODULE_XML_MISSING,
          deploymentFile.getAbsolutePath()));
origin: org.apache.synapse/synapse-core

public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException {
  String libFilePath = FilenameUtils.normalize(deploymentFileData.getAbsolutePath());
  if (log.isDebugEnabled()) {
    log.debug("Deployment of the synapse library artifact from file : " + libFilePath + " : STARTED");
      log.debug("Skipped the library artifact deployment (since the Synapse " +
           "server doesn't seem to be started yet), from file : "
           + deploymentFileData.getAbsolutePath());
origin: org.apache.synapse/synapse-core

log.info("Loading extensions from: " + deploymentFileData.getAbsolutePath());
origin: org.wso2.carbon.commons/org.wso2.carbon.identity.user.store.configuration.deployer

String absolutePath = deploymentFileData.getAbsolutePath();
String ext = FilenameUtils.getExtension(absolutePath);
userStoreDeploymentManager.deploy(deploymentFileData.getAbsolutePath());
origin: wso2/carbon-identity-framework

String absolutePath = deploymentFileData.getAbsolutePath();
String ext = FilenameUtils.getExtension(absolutePath);
userStoreDeploymentManager.deploy(deploymentFileData.getAbsolutePath());
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.user.store.configuration.deployer

String absolutePath = deploymentFileData.getAbsolutePath();
String ext = FilenameUtils.getExtension(absolutePath);
userStoreDeploymentManager.deploy(deploymentFileData.getAbsolutePath());
origin: wso2/wso2-synapse

log.info("Loading extensions from: " + deploymentFileData.getAbsolutePath());
origin: wso2/wso2-synapse

public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException {
String libFilePath = FilenameUtils.normalize(deploymentFileData.getAbsolutePath());
if (log.isDebugEnabled()) {
  log.debug("Deployment of the synapse library artifact from file : " + libFilePath
origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

/**
 * Creates AxisService with the given deployment information.
 */
private AxisService processService(DeploymentFileData currentFile,
    AxisServiceGroup axisServiceGroup, ConfigurationContext configCtx)
    throws DataServiceFault {
  /*
    Security Comment
    CurrentFile contains the actual dbs data location in the server. there isn't any input from the user.
   */
  AxisService axisService = createDBService(currentFile.getAbsolutePath(), configCtx.getAxisConfiguration());
  axisService.setParent(axisServiceGroup);
  axisService.setClassLoader(axisConfig.getServiceClassLoader());
  /* handle services.xml, if exists */
  this.handleTransports(currentFile, axisService);
  return axisService;
}
origin: org.apache.axis2/axis2-kernel

public void deploy(DeploymentFileData deploymentFileData) {
  ClassLoader threadClassLoader = Thread.currentThread().getContextClassLoader();
  String serviceHierarchy = Utils.getServiceHierarchy(deploymentFileData.getAbsolutePath(), 
      this.directory);
origin: org.wso2.carbon.event-processing/org.wso2.carbon.event.processor.core

String executionPlanName = "";
try {
  String executionPlan = readFile(deploymentFileData.getAbsolutePath());
  EventProcessorHelper.validateExecutionPlan(executionPlan);
  executionPlanConfigurationFile.setExecutionPlanName(executionPlanName);
  executionPlanConfigurationFile.setFileName(deploymentFileData.getName());
  executionPlanConfigurationFile.setFilePath(deploymentFileData.getAbsolutePath());
  carbonEventProcessorService.addExecutionPlanConfigurationFile(executionPlanConfigurationFile);
  executionPlanConfigurationFile.setExecutionPlanName(executionPlanName);
  executionPlanConfigurationFile.setFileName(deploymentFileData.getName());
  executionPlanConfigurationFile.setFilePath(deploymentFileData.getAbsolutePath());
  carbonEventProcessorService.addExecutionPlanConfigurationFile(executionPlanConfigurationFile);
    executionPlanConfigurationFile.setExecutionPlanName(executionPlanName);
    executionPlanConfigurationFile.setFileName(deploymentFileData.getName());
    executionPlanConfigurationFile.setFilePath(deploymentFileData.getAbsolutePath());
    carbonEventProcessorService.addExecutionPlanConfigurationFile(executionPlanConfigurationFile);
origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

    deploymentFileData.getAbsolutePath(), this.repoDir);
if (serviceHierarchy == null){
  serviceHierarchy = "";
        deploymentFileData.getName(), deploymentFileData.getAbsolutePath()));
org.apache.axis2.deployment.repository.utilDeploymentFileDatagetAbsolutePath

Popular methods of DeploymentFileData

  • getFile
  • getName
    Get the name of the file.
  • <init>
  • getClassLoader
  • setClassLoader
  • deploy
  • getFileExtension
  • getServiceMetaData
  • getUrl
  • isModuleArchiveFile
  • isServiceArchiveFile
    Checks whether a given file is a jar or an aar file.
  • setServiceMetaData
  • isServiceArchiveFile,
  • setServiceMetaData

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now