public abstract class Server extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
className
Class name of the handler class.
|
protected Configuration |
configuration
Configuration.
|
Constructor and Description |
---|
Server(Configuration configuration,
String className)
Creates a new
Server instance. |
Modifier and Type | Method and Description |
---|---|
static Server |
create(Configuration configuration,
Element elem)
Create a server from an XML element.
|
Object |
createHandler()
Create the handler.
|
boolean |
equals(Object obj) |
String |
getClassName()
Get the class name of the query handler.
|
protected abstract String |
getType()
Return the type of the handler.
|
int |
hashCode() |
void |
setClassName(String className)
Set the class name of the handler.
|
String |
toString() |
Node |
toXML(Document owner)
Render this server into XML.
|
protected Configuration configuration
protected String className
public Server(Configuration configuration, String className)
Server
instance.configuration
- System configuration.className
- Class name of the query handler.public Node toXML(Document owner)
owner
- Owning document.public String getClassName()
public Object createHandler() throws ClassNotFoundException, InstantiationException, IllegalAccessException
ClassNotFoundException
- if the handler class can't be found.InstantiationException
- if the handler object can't be created.IllegalAccessException
- if the handler class doesn't provide a public no-args
constructor.public void setClassName(String className)
className
- Class name of the handler.protected abstract String getType()
product
or profile
.public static Server create(Configuration configuration, Element elem) throws SAXException
elem
- XML element, presumed to be a <server> element.Server
subclass.SAXException
- if the element can't be properly parsed.Copyright © 1999-2014 Apache OODT. All Rights Reserved.