org.apache.maven.wagon.resource

Class Resource

public class Resource extends 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
longcontentLength
longlastModified
Stringname
Constructor Summary
Resource()
Resource(String name)
Method Summary
longgetContentLength()
longgetLastModified()
Returns the value of the last-modified header field.
StringgetName()
voidsetContentLength(long contentLength)
voidsetLastModified(long lastModified)
voidsetName(String name)
StringtoString()

Field Detail

contentLength

private long contentLength

lastModified

private long lastModified

name

private String name

Constructor Detail

Resource

public Resource()

Resource

public Resource(String name)

Method Detail

getContentLength

public long getContentLength()

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.

getName

public String getName()

setContentLength

public void setContentLength(long contentLength)

setLastModified

public void setLastModified(long lastModified)

setName

public void setName(String name)

toString

public String toString()