org.eclipse.wst.server.core.util
Class WebResource

java.lang.Object
  extended byorg.eclipse.wst.server.core.util.WebResource
All Implemented Interfaces:
IModuleArtifact

public class WebResource
extends java.lang.Object
implements IModuleArtifact

Since:
1.0

Constructor Summary
WebResource(IModule module, IPath path)
          Create a new reference to a Web resource (HTML, GIF, etc.
 
Method Summary
 IModule getModule()
          Returns the module that this artifact is a part of.
 IPath getPath()
          Return the relative path to the artifact within the module.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebResource

public WebResource(IModule module,
                   IPath path)
Create a new reference to a Web resource (HTML, GIF, etc. on a server).

Parameters:
module - a module
path - a relative path within the module
Method Detail

getModule

public IModule getModule()
Description copied from interface: IModuleArtifact
Returns the module that this artifact is a part of.

Specified by:
getModule in interface IModuleArtifact
Returns:
the module that this artifact is contained in
See Also:
IModuleArtifact.getModule()

getPath

public IPath getPath()
Return the relative path to the artifact within the module.

Returns:
the relative path

toString

public java.lang.String toString()
See Also:
Object.toString()