Package org.apache.maven.wagon.resource
Class Resource
- java.lang.Object
-
- org.apache.maven.wagon.resource.Resource
-
public class Resource extends java.lang.ObjectDescribes 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.
-
-
Field Summary
Fields Modifier and Type Field Description private longcontentLengthprivate longlastModifiedprivate java.lang.Stringname
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetContentLength()longgetLastModified()Returns the value of the last-modified header field.java.lang.StringgetName()inthashCode()java.lang.Stringinspect()voidsetContentLength(long contentLength)voidsetLastModified(long lastModified)voidsetName(java.lang.String name)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
inspect
public java.lang.String inspect()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-