mx4j.loading

Class MLetTag

public class MLetTag extends Object

Represents an MLET tag, as documented in the JMX specification.

Version: $Revision: 1.6 $

Method Summary
URLcreateArchiveURL(URL codebase, String archive)
Returns the URL for the given archive file name using the provided URL as a codebase, or null if the URL cannot be created.
StringgetArchive()
Object[]getArguments()
StringgetCode()
StringgetCodeBase()
StringgetObject()
ObjectNamegetObjectName()
String[]getSignature()
StringgetVersion()
URLnormalizeCodeBase(URL mletFileURL)
Normalizes the codebase held by this MLetTag (specified in the MLet file) using the URL of the MLet file as default.
String[]parseArchive()
Returns the jars file names specified in the ARCHIVE attribute of the MLet tag.

Method Detail

createArchiveURL

public URL createArchiveURL(URL codebase, String archive)
Returns the URL for the given archive file name using the provided URL as a codebase, or null if the URL cannot be created.

getArchive

public String getArchive()

getArguments

public Object[] getArguments()

getCode

public String getCode()

getCodeBase

public String getCodeBase()

getObject

public String getObject()

getObjectName

public ObjectName getObjectName()

getSignature

public String[] getSignature()

getVersion

public String getVersion()

normalizeCodeBase

public URL normalizeCodeBase(URL mletFileURL)
Normalizes the codebase held by this MLetTag (specified in the MLet file) using the URL of the MLet file as default. This means that if the codebase in the MLet file is not provided or it is relative, then the URL of the MLet file will be taken as base for computing the normalized codebase; otherwise, if a full URL has been specified as codebase in the MLet file, that URL is taken and the URL of the MLet file is discarded.

Parameters: mletFileURL The URL of the MLet file

Returns: The normalized codebase

parseArchive

public String[] parseArchive()
Returns the jars file names specified in the ARCHIVE attribute of the MLet tag.
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.