Package org.apache.maven.wagon.resource
Class Resource
java.lang.Object
org.apache.maven.wagon.resource.Resource
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.
- Author:
- Michal Maczka
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
long
Returns the value of the last-modified header field.getName()
int
hashCode()
inspect()
void
setContentLength
(long contentLength) void
setLastModified
(long lastModified) void
toString()
-
Constructor Details
-
Resource
public Resource() -
Resource
-
-
Method Details
-
getName
-
setName
-
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
-
inspect
-
hashCode
public int hashCode() -
equals
-