3.0.2: 2012-01-25

net.sf.basedb.clients.web.extensions
Class ServletWrapperKey

java.lang.Object
  extended by 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) $

Field Summary
private  String jarFile
           
private  String servletName
           
 
Constructor Summary
ServletWrapperKey(String jarFile, String servletName)
          Create a new key for a servlet defined in a file with the given name.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toDescription()
          Get a string description of the key that is suitable for use in (error) messages to users.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

jarFile

private final String jarFile

servletName

private final String servletName
Constructor Detail

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 defined
servletName - The name of the servlet
Method Detail

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

3.0.2: 2012-01-25