Package com.sun.xml.rpc.tools.wsdeploy
Class DeployTool
- java.lang.Object
-
- com.sun.xml.rpc.util.ToolBase
-
- com.sun.xml.rpc.tools.wsdeploy.DeployTool
-
- All Implemented Interfaces:
ProcessorNotificationListener
public class DeployTool extends ToolBase implements ProcessorNotificationListener
- Author:
- JAX-RPC Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
clientSpecified
protected File
destFile
protected boolean
doNothing
static String
JAXRPC_RI_DD
static String
JAXRPC_RI_DD_PROCESSED
static String
JAXRPC_RI_RUNTIME
protected boolean
keepTemporaryFiles
protected Properties
props
protected File
sourceFile
protected String
target
protected File
tmpdir
protected File
tmpdirBase
protected String
userClasspath
protected boolean
verbose
static String
WEBAPP_DD
static String
WEBAPP_DD_PROCESSED
-
Constructor Summary
Constructors Constructor Description DeployTool(OutputStream out, String program)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
collectAllFiles(File dir, List files)
protected static void
copyFile(File in, File out)
protected static void
copyStream(InputStream is, OutputStream os)
protected void
createRuntimeDescriptor(WebServicesInfo webServicesInfo)
protected File
createTemporaryDirectory()
protected void
defineServletsAndListeners(WebServicesInfo webServicesInfo)
protected void
expandSourceFile()
protected String
getGenericErrorMessage()
protected String
getResourceBundleName()
protected void
initialize()
void
onError(Localizable msg)
void
onInfo(Localizable msg)
void
onWarning(Localizable msg)
protected void
packageDestinationFile()
protected void
packageEndpointClient()
protected boolean
parseArguments(String[] args)
protected void
process(EndpointInfo endpointInfo, WebServicesInfo webServicesInfo)
protected void
process(WebServicesInfo webServicesInfo)
protected static void
removeDirectory(File directory)
void
run()
protected File
translateSourceAppFileName(String name)
protected void
usage()
-
Methods inherited from class com.sun.xml.rpc.util.ToolBase
getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, printStackTrace, report, report, run, wasSuccessful
-
-
-
-
Field Detail
-
props
protected Properties props
-
doNothing
protected boolean doNothing
-
clientSpecified
protected boolean clientSpecified
-
verbose
protected boolean verbose
-
keepTemporaryFiles
protected boolean keepTemporaryFiles
-
sourceFile
protected File sourceFile
-
destFile
protected File destFile
-
tmpdirBase
protected File tmpdirBase
-
tmpdir
protected File tmpdir
-
userClasspath
protected String userClasspath
-
target
protected String target
-
WEBAPP_DD
public static final String WEBAPP_DD
- See Also:
- Constant Field Values
-
WEBAPP_DD_PROCESSED
public static final String WEBAPP_DD_PROCESSED
- See Also:
- Constant Field Values
-
JAXRPC_RI_DD
public static final String JAXRPC_RI_DD
- See Also:
- Constant Field Values
-
JAXRPC_RI_DD_PROCESSED
public static final String JAXRPC_RI_DD_PROCESSED
- See Also:
- Constant Field Values
-
JAXRPC_RI_RUNTIME
public static final String JAXRPC_RI_RUNTIME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DeployTool
public DeployTool(OutputStream out, String program)
-
-
Method Detail
-
initialize
protected void initialize()
- Overrides:
initialize
in classToolBase
-
parseArguments
protected boolean parseArguments(String[] args)
- Specified by:
parseArguments
in classToolBase
-
usage
protected void usage()
-
process
protected void process(WebServicesInfo webServicesInfo) throws Exception
- Throws:
Exception
-
process
protected void process(EndpointInfo endpointInfo, WebServicesInfo webServicesInfo) throws Exception
- Throws:
Exception
-
defineServletsAndListeners
protected void defineServletsAndListeners(WebServicesInfo webServicesInfo) throws Exception
- Throws:
Exception
-
createRuntimeDescriptor
protected void createRuntimeDescriptor(WebServicesInfo webServicesInfo) throws Exception
- Throws:
Exception
-
createTemporaryDirectory
protected File createTemporaryDirectory()
-
collectAllFiles
protected void collectAllFiles(File dir, List files) throws Exception
- Throws:
Exception
-
removeDirectory
protected static void removeDirectory(File directory) throws IOException
- Throws:
IOException
-
copyFile
protected static void copyFile(File in, File out) throws IOException
- Throws:
IOException
-
copyStream
protected static void copyStream(InputStream is, OutputStream os) throws IOException
- Throws:
IOException
-
getGenericErrorMessage
protected String getGenericErrorMessage()
- Specified by:
getGenericErrorMessage
in classToolBase
-
getResourceBundleName
protected String getResourceBundleName()
- Specified by:
getResourceBundleName
in classToolBase
-
onError
public void onError(Localizable msg)
- Specified by:
onError
in interfaceProcessorNotificationListener
-
onWarning
public void onWarning(Localizable msg)
- Specified by:
onWarning
in interfaceProcessorNotificationListener
-
onInfo
public void onInfo(Localizable msg)
- Specified by:
onInfo
in interfaceProcessorNotificationListener
-
-