***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.deployment.ioc
Class URLDeploymentContext

com.sas.services.deployment.ioc.URLDeploymentContext
All Implemented Interfaces:
DeploymentStrategyInterface

public class URLDeploymentContext

Context used to describes how to query SAS Foundation Services metadata using a URL that references a services deployment file that has been exported from a SAS Metadata Server.

One must specify the following properties when defining this context.

URL Deployment Context Properties
PropertyDescription
MetadataSourceFactory.PROPERTY_SOFTWARECOMPONENT Service deployment's name (i.e. SoftwareComponent.Name)
MetadataSourceFactory.PROPERTY_URL URL to the exported SAS Foundation Services deployment XML file

Example 1: Configuring a Context

This example creates a context which will be used to query SAS Foundation Services metadata from a URL to a SAS Foundation Services deployment which has been exported from the SAS Metadata Server.

Code Example: Configuring a Context to Query Services Metadata from a URL

   // specify configuration properties necessary to query 
   // SAS Foundation Services deployment metadata
   // from a SAS Metadata Server repository

   URLDeploymentContext context = new URLDeploymentContext();

   // name of the SAS Foundation Services deployment 
   // (e.g. the SoftwareComponent.Name)
   context.setPropertySoftwareComponent("Local Services");

   // URL to an exported SAS Foundation Services deployment file
   context.setPropertyURL("file:/C:/xxx/local_services.xml");

Since:
9.2
See Also:
OMRDeploymentContext

Constructor Summary
URLDeploymentContext(AbstractDeploymentStrategy strategy)
          Constructs a context that describes SAS Foundation Services deployment metadata which is persisted in a SAS Metadata Repository.
 
Method Summary
 java.lang.String getPropertyURL()
          Gets the value of the URL configuration.
 void setPropertyURL(java.lang.String url)
          Gets the value of the URL configuration .
 
Methods inherited from class com.sas.services.deployment.DeploymentDescriptorContext
createDocument, createFile, createFiles, getProperty, getPropertySoftwareComponent, reconfigure, setProperty, setPropertySoftwareComponent
 

Constructor Detail

URLDeploymentContext

public URLDeploymentContext(AbstractDeploymentStrategy strategy)
                     throws ServiceException
Constructs a context that describes SAS Foundation Services deployment metadata which is persisted in a SAS Metadata Repository.

Parameters:
strategy - Deployment strategy.
Throws:
ServiceException - if unable to create a context.
Method Detail

getPropertyURL

public final java.lang.String getPropertyURL()
Gets the value of the URL configuration.

Returns:
Configuration property value representing a URL to a SAS Foundation Services metadata source. A null will be returned if the specified property is not defined.

setPropertyURL

public final void setPropertyURL(java.lang.String url)
Gets the value of the URL configuration .

Parameters:
url - Configuration property value representing a URL to a SAS Foundation Services metadata source.

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.