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.String
path
Path.
-
Constructor Summary
Constructors Constructor Description AbstractHttpResource(java.lang.String path)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getPath()
Obtains the path to thisHttpResource
.int
hashCode()
-
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:HttpResource
Obtains the path to this
HttpResource
.The path is canonical to allow using it as a key for caching this
HttpResource
.- Specified by:
getPath
in interfaceHttpResource
- Returns:
- Canonical path to this
HttpResource
.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-