com.bea.commerce.platform.placeholder
Class PlaceholderDeployer
java.lang.Object
|
+--com.bea.commerce.platform.placeholder.PlaceholderDeployer
- All Implemented Interfaces:
- PlaceholderConstants
- public class PlaceholderDeployer
- extends java.lang.Object
- implements PlaceholderConstants
this class is a basic command line deployer for placholders. It supports
add (update), fetch and delete of placeholders.
Method Summary |
java.lang.String |
deletePlaceholder(java.lang.String placeholderName,
javax.naming.Context context)
delete a placeholder |
java.lang.String |
deployPlaceholder(java.lang.String xmlFilename,
javax.naming.Context context,
boolean echo)
deploy a new placeholder or update an existing placeholder |
java.lang.String |
fetchPlaceholder(java.lang.String placeholderName,
javax.naming.Context context,
boolean echo)
return the XML definition of a placeholder |
void |
handle(java.lang.String[] args)
This method will process the args and then call the runit
method. |
static void |
main(java.lang.String[] args)
The main for the command line version |
java.lang.String |
runit(java.lang.String xmlFileName,
java.lang.String fetchId,
java.lang.String deleteId,
java.lang.String initialContextFactory,
java.lang.String hostName,
int port,
java.lang.String username,
java.lang.String password,
boolean echo)
run the command against the PlaceholderService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlaceholderDeployer
public PlaceholderDeployer()
runit
public java.lang.String runit(java.lang.String xmlFileName,
java.lang.String fetchId,
java.lang.String deleteId,
java.lang.String initialContextFactory,
java.lang.String hostName,
int port,
java.lang.String username,
java.lang.String password,
boolean echo)
throws java.lang.Exception
- run the command against the PlaceholderService
- Parameters:
xmlFileName
- the file name for the xml filefetchId
- the placeholder name to fetchdeleteId
- the placeholder name to deleteinitialContextFactory
- the name of the ContextFactoryhostName
- the host of the serverport
- the port the server is running onusername
- a username for authenticationpassowrd
- the passwordecho
- echo the input?
fetchPlaceholder
public java.lang.String fetchPlaceholder(java.lang.String placeholderName,
javax.naming.Context context,
boolean echo)
throws java.lang.Exception
- return the XML definition of a placeholder
- Parameters:
placeholderName
- the name of the placeholdercontext
- the request contextecho
- the echo flag
deployPlaceholder
public java.lang.String deployPlaceholder(java.lang.String xmlFilename,
javax.naming.Context context,
boolean echo)
throws java.lang.Exception
- deploy a new placeholder or update an existing placeholder
- Parameters:
xmlFilename
- the XML file contain the placeholder definition.context
- the request contextecho
- the echo flag
deletePlaceholder
public java.lang.String deletePlaceholder(java.lang.String placeholderName,
javax.naming.Context context)
throws java.lang.Exception
- delete a placeholder
- Parameters:
placeholderName
- the name of the placeholder to deletecontext
- the context
handle
public void handle(java.lang.String[] args)
- This method will process the args and then call the runit
method.
main
public static void main(java.lang.String[] args)
- The main for the command line version
Copyright © 2001 BEA Systems, Inc. All Rights Reserved