org.apache.maven.wagon.resource
Class Resource

java.lang.Object
  extended by org.apache.maven.wagon.resource.Resource

public class Resource
extends java.lang.Object

Describes resources which can be downloaded from the repository or uploaded to repository.

This class contains minimal set of informations, which are needed to reuse wagon in maven 1.

Version:
$Id: Resource.java 312572 2005-10-10 07:17:58Z brett $
Author:
Michal Maczka

Field Summary
private  long contentLength
           
private  long lastModified
           
private  java.lang.String name
           
 
Constructor Summary
Resource()
           
Resource(java.lang.String name)
           
 
Method Summary
 long getContentLength()
           
 long getLastModified()
          Returns the value of the last-modified header field.
 java.lang.String getName()
           
 void setContentLength(long contentLength)
           
 void setLastModified(long lastModified)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

lastModified

private long lastModified

contentLength

private long contentLength
Constructor Detail

Resource

public Resource()

Resource

public Resource(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getLastModified

public long getLastModified()
Returns the value of the last-modified header field. The result is the number of milliseconds since January 1, 1970 GMT.

Returns:
the date the resource was last modified, or WagonConstants.UNKNOWN_LENGTH if not known.

setLastModified

public void setLastModified(long lastModified)

getContentLength

public long getContentLength()

setContentLength

public void setContentLength(long contentLength)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object