|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cas.xml.AbstractCasSaxTagHandler cas.protocol.JCasRequest
Request information object.
Field Summary | |
protected String |
agent
The agent. |
protected String |
clientIP
The client IP |
protected boolean |
closeCon
Tells if the stored connection must be closed later. |
protected Boolean |
closeConnection
Tells if the connection should be closed afterwards. |
protected Connection |
con
The database connection used to process the rquest. |
protected String |
cookie
The cookie |
protected JCasCookiesTag |
cookies
The cookie tag handler responsible for this request |
protected InetAddress |
hostIP
IP Address of the client host |
static String |
NAME
The name of the tag. |
protected String |
password
The password |
protected String |
scheme
The scheme |
protected String |
user
The user |
Constructor Summary | |
JCasRequest()
Creates a new instance of JCasRequest |
Method Summary | |
void |
close()
Closes the connection if necessary. |
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 |
getClientIP()
Returns the client ip. |
boolean |
getCloseConnection()
Returns if the connection should be closed. |
Connection |
getConnection()
Returns the connection. |
String |
getCookie()
Returns the cookie. |
JCasCookiesTag |
getCookies()
Returns the responsiblke cookie handler. |
InetAddress |
getHostIP()
Returns the host ip. |
String[] |
getParentTagNames()
Returns the tag names of all possible parents. |
String |
getPassword()
Returns the Password. |
String |
getScheme()
Returns the scheme name. |
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 |
removeCookie()
Sets the cookie. |
void |
setConnection(Connection con,
boolean close)
Sets the connection of this request. |
void |
setCookies(JCasCookiesTag cookies)
Sets the cookies tag handler. |
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 |
public static final String NAME
protected String scheme
protected String agent
protected String user
protected String password
protected String cookie
protected String clientIP
protected Boolean closeConnection
protected InetAddress hostIP
protected Connection con
protected boolean closeCon
protected JCasCookiesTag cookies
Constructor Detail |
public JCasRequest()
Method Detail |
protected String[] getSubTagNames()
AbstractCasSaxTagHandler
getSubTagNames
in class AbstractCasSaxTagHandler
protected AbstractCasSaxTagHandler createHandler(String tagName, Attributes attributes)
AbstractCasSaxTagHandler
createHandler
in class AbstractCasSaxTagHandler
tagName
- - name of the sub tag
public String[] getParentTagNames()
AbstractCasSaxTagHandler
getParentTagNames
in class AbstractCasSaxTagHandler
public String getTagName()
CasSaxTagHandler
public void tagCompleted() throws SAXException
AbstractCasSaxTagHandler
tagCompleted
in interface CasSaxTagHandler
tagCompleted
in class AbstractCasSaxTagHandler
SAXException
public String getScheme()
public String getAgent()
public String getUser()
public String getPassword()
public String getCookie()
public void removeCookie()
public String getClientIP()
public boolean getCloseConnection()
public void setHostIP(InetAddress adr)
public InetAddress getHostIP()
public void setConnection(Connection con, boolean close)
con
- - connectionclose
- - true if the connection must be closed at the end of the requestclose()
public Connection getConnection()
public void close()
public void setCookies(JCasCookiesTag cookies)
public JCasCookiesTag getCookies()
|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |