JCas
v0.3.1

cas.protocol
Class JCasAdminRequest

java.lang.Object
  extended bycas.xml.AbstractCasSaxTagHandler
      extended bycas.protocol.JCasAdminRequest
All Implemented Interfaces:
CasSaxTagHandler

public class JCasAdminRequest
extends AbstractCasSaxTagHandler

Request information object.

Version:
1.0
Author:
Ralph Schuster

Field Summary
protected  String agent
          The agent.
protected  String command
          The command
protected  InetAddress hostIP
          IP Address of the client host
static String NAME
          The name of the tag.
protected  String password
          The password
protected  String user
          The user
 
Constructor Summary
JCasAdminRequest()
          Creates a new instance of JCasAdminRequest
 
Method Summary
protected  AbstractCasSaxTagHandler createHandler(String tagName, Attributes attributes)
          Returns a new instance of the handler for the specified sub tag.
 String getAgent()
          Returns the agent.
 String getCommand()
          Returns the command.
 InetAddress getHostIP()
          Returns the host ip.
 String[] getParentTagNames()
          Returns the tag names of all possible parents.
 String getPassword()
          Returns the Password.
protected  String[] getSubTagNames()
          Returns the tag names that can appear within this handler but actually do not contain other tags.
 String getTagName()
          Returns the tag name this handler will take care of.
 String getUser()
          Returns the user.
 void setHostIP(InetAddress adr)
          Sets the host ip
 void tagCompleted()
          Validates the configuration.
 
Methods inherited from class cas.xml.AbstractCasSaxTagHandler
characters, clear, endElement, getHandler, getSubHandler, getSubHandlerCount, getSubHandlers, getSubTag, getSubTag, getSubTagCount, getSubTags, ignoresUnknownTags, setAttributes, setIgnoreUnknownTags, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
The name of the tag.

See Also:
Constant Field Values

command

protected String command
The command


agent

protected String agent
The agent.


user

protected String user
The user


password

protected String password
The password


hostIP

protected InetAddress hostIP
IP Address of the client host

Constructor Detail

JCasAdminRequest

public JCasAdminRequest()
Creates a new instance of JCasAdminRequest

Method Detail

getSubTagNames

protected String[] getSubTagNames()
Description copied from class: AbstractCasSaxTagHandler
Returns the tag names that can appear within this handler but actually do not contain other tags.

Overrides:
getSubTagNames in class AbstractCasSaxTagHandler
Returns:
- all tag names that represent simple tags.

createHandler

protected AbstractCasSaxTagHandler createHandler(String tagName,
                                                 Attributes attributes)
Description copied from class: AbstractCasSaxTagHandler
Returns a new instance of the handler for the specified sub tag.

Specified by:
createHandler in class AbstractCasSaxTagHandler
Parameters:
tagName - - name of the sub tag
Returns:
new instance of sub tag handler or null

getParentTagNames

public String[] getParentTagNames()
Description copied from class: AbstractCasSaxTagHandler
Returns the tag names of all possible parents.

Specified by:
getParentTagNames in class AbstractCasSaxTagHandler
Returns:
- the tag names of possible parents

getTagName

public String getTagName()
Description copied from interface: CasSaxTagHandler
Returns the tag name this handler will take care of.

Returns:
- a tag name.

tagCompleted

public void tagCompleted()
                  throws SAXException
Description copied from class: AbstractCasSaxTagHandler
Validates the configuration. By default this method does nothing but handlers should override to check the values.

Specified by:
tagCompleted in interface CasSaxTagHandler
Overrides:
tagCompleted in class AbstractCasSaxTagHandler
Throws:
SAXException

getCommand

public String getCommand()
Returns the command.


getAgent

public String getAgent()
Returns the agent.


getUser

public String getUser()
Returns the user.


getPassword

public String getPassword()
Returns the Password.


setHostIP

public void setHostIP(InetAddress adr)
Sets the host ip


getHostIP

public InetAddress getHostIP()
Returns the host ip.


JCas
v0.3.1