modnlp.tec.client
public class TecClientRequest extends java.util.Hashtable<java.lang.String,java.lang.String>
TecServer
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
CONCORD |
static int |
EXTRACT |
static int |
NOTREQ |
static int |
SQLQUERY |
Constructor and Description |
---|
TecClientRequest() |
TecClientRequest(java.lang.String rq)
Parse client request and initialize a key-value table
to store it
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsComplexKeyword() |
int |
getContextSize() |
int |
getServerPORT() |
java.lang.String |
getServerProgramPath() |
java.lang.String |
getServerURL() |
java.lang.String |
getURLQueryBase() |
boolean |
isValidURL() |
void |
put(java.lang.String key,
int value) |
void |
put(java.lang.String key,
long value) |
void |
setServerPORT(int port) |
void |
setServerProgramPath(java.lang.String prog) |
void |
setServerURL(java.lang.String url) |
void |
testKeyVal()
Method for test purposes only.
|
java.lang.String |
toString() |
int |
typeOfRequest()
Test the type of request against a predefined table
|
public static final int CONCORD
public static final int EXTRACT
public static final int SQLQUERY
public static final int NOTREQ
public TecClientRequest()
public TecClientRequest(java.lang.String rq)
rq
- a String
containing the
unparsed, CGI-like requestpublic void setServerURL(java.lang.String url)
public void setServerPORT(int port)
public void setServerProgramPath(java.lang.String prog)
public java.lang.String getServerURL()
public int getServerPORT()
public java.lang.String getServerProgramPath()
public boolean isValidURL()
public java.lang.String getURLQueryBase()
public int typeOfRequest()
int
code for a type of requestCONCORD
,
EXTRACT
,
NOTREQ
public int getContextSize()
public boolean containsComplexKeyword()
public void put(java.lang.String key, int value)
public void put(java.lang.String key, long value)
public java.lang.String toString()
toString
in class java.util.Hashtable<java.lang.String,java.lang.String>
public void testKeyVal()