JCas
v0.3.1

cas.protocol
Class JCasResponseTag

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

public class JCasResponseTag
extends AbstractCasSaxTagHandler

Parses a response from a server.

Author:
Ralph Schuster

Field Summary
protected  String cookie
           
protected  String errorCode
           
protected  String errorMessage
           
static String NAME
           
protected  boolean rc
           
protected  String server
           
 
Constructor Summary
JCasResponseTag()
          Creates a new instance of JCasResponseTag
 
Method Summary
protected  AbstractCasSaxTagHandler createHandler(String tagName, Attributes attributes)
          Returns a new instance of the handler for the specified sub tag.
 String getErrorCode()
           
 String getErrorMessage()
           
 String[] getParentTagNames()
          Returns the tag names of all possible parents.
 String getResponseCookie()
           
 boolean getReturnCode()
           
 String getServerName()
           
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.
 void setConnectError()
           
 void setProtocolError()
           
 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

rc

protected boolean rc

errorCode

protected String errorCode

errorMessage

protected String errorMessage

cookie

protected String cookie

server

protected String server

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

JCasResponseTag

public JCasResponseTag()
Creates a new instance of JCasResponseTag

Method Detail

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.

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.

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

getResponseCookie

public String getResponseCookie()

getServerName

public String getServerName()

getReturnCode

public boolean getReturnCode()

getErrorMessage

public String getErrorMessage()

getErrorCode

public String getErrorCode()

setProtocolError

public void setProtocolError()

setConnectError

public void setConnectError()

JCas
v0.3.1