net.sf.basedb.clients.web.extensions
Class ServletWrapperKey
java.lang.Object
net.sf.basedb.clients.web.extensions.ServletWrapperKey
- All Implemented Interfaces:
- ObjectKey<ServletWrapper>
public class ServletWrapperKey
- extends Object
- implements ObjectKey<ServletWrapper>
Key implementation used to identify servlets.
We need both the file name and the servlet name
to be able to do this.
- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date: 2011-04-14 09:45:23 +0200 (Thu, 14 Apr 2011) $
jarFile
private final String jarFile
servletName
private final String servletName
ServletWrapperKey
public ServletWrapperKey(String jarFile,
String servletName)
- Create a new key for a servlet defined in a file with the
given name.
- Parameters:
jarFile
- The name of the JAR file in which the servlet was definedservletName
- The name of the servlet
toDescription
public String toDescription()
- Description copied from interface:
ObjectKey
- Get a string description of the key that is suitable for use
in (error) messages to users.
- Specified by:
toDescription
in interface ObjectKey<ServletWrapper>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object