Class AbstractHttpResource
- java.lang.Object
-
- net.officefloor.web.resource.impl.AbstractHttpResource
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,HttpResource
- Direct Known Subclasses:
HttpDirectoryImpl,HttpFileImpl,NotExistHttpResource
public abstract class AbstractHttpResource extends java.lang.Object implements HttpResource, java.io.Closeable
AbstractHttpResource.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringpathPath.
-
Constructor Summary
Constructors Constructor Description AbstractHttpResource(java.lang.String path)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetPath()Obtains the path to thisHttpResource.inthashCode()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.web.resource.HttpResource
isExist
-
-
-
-
Method Detail
-
getPath
public java.lang.String getPath()
Description copied from interface:HttpResourceObtains the path to this
HttpResource.The path is canonical to allow using it as a key for caching this
HttpResource.- Specified by:
getPathin interfaceHttpResource- Returns:
- Canonical path to this
HttpResource.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-