org.apache.maven.wagon.resource
Class Resource

java.lang.Object
  extended by org.apache.maven.wagon.resource.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 682047 2008-08-02 21:07:38Z hboutemy $
Author:
Michal Maczka

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

Constructor Detail

Resource

public Resource()

Resource

public Resource(String name)
Method Detail

getName

public String getName()

setName

public void setName(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 String toString()
Overrides:
toString in class Object

inspect

public String inspect()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.