|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.util.ServiceRequest org.opengts.extra.service.GTSServiceRequest
public class GTSServiceRequest
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.opengts.util.ServiceRequest |
---|
ServiceRequest.Authorization, ServiceRequest.RequestBody |
Field Summary |
---|
Fields inherited from class org.opengts.util.ServiceRequest |
---|
AUTH_ENCODING_PREFIX, METHOD_handleRequest, SRATTR_account, SRATTR_auth, SRATTR_code, SRATTR_command, SRATTR_password, SRATTR_result, SRATTR_user, SRTAG_Authorization, SRTAG_GTSRequest, SRTAG_GTSResponse, SRTAG_Message |
Constructor Summary | |
---|---|
GTSServiceRequest(java.lang.String url)
Constructor |
Method Summary | |
---|---|
protected java.lang.StringBuffer |
formatTime(java.lang.StringBuffer sb,
java.lang.String pfx,
DateTime dt,
boolean isTimeTo)
Appends a formatted "TimeFrom"/"TimeTo" tag element to the specified StringBuffer |
Account |
getAccount(java.lang.String acctID)
Get a specific virtual Account |
java.lang.String[] |
getAccountIDs()
Gets a list of Accounts |
org.w3c.dom.Document |
getCommandOnly_Document(java.lang.String command)
Returns a Document response for requrest that only require a command name |
Device |
getDevice(java.lang.String acctID,
java.lang.String devID)
|
static java.lang.String |
getGTSReportsResult(org.w3c.dom.Document gtsRespDoc)
Returns the "result" tag value for the specified GTSResponse |
static java.lang.String |
getGTSResponse_Message_code(org.w3c.dom.Document gtsRespDoc)
|
org.w3c.dom.Document |
getMapDataDevice_Document(java.lang.String deviceID,
DateTime frDT,
DateTime toDT)
|
org.w3c.dom.Document |
getMapDataGroup_Document(java.lang.String groupID,
DateTime frDT,
DateTime toDT)
|
org.w3c.dom.Document |
getProperty_Document(java.lang.String propKey)
|
java.lang.String |
getProperty(java.lang.String propKey)
|
org.w3c.dom.Document |
getReportDevice_Document(java.lang.String reportName,
java.lang.String deviceID,
DateTime frDT,
DateTime toDT)
|
org.w3c.dom.Document |
getReportGroup_Document(java.lang.String reportName,
java.lang.String groupID,
DateTime frDT,
DateTime toDT)
|
org.w3c.dom.Document |
getReportJob_Document(java.lang.String reportGroupTag)
|
protected org.w3c.dom.NodeList |
getResponseNodeList(org.w3c.dom.Document respDoc,
java.lang.String tag)
Reads the Document response and returns a list of the specified subnodes |
org.w3c.dom.Document |
getTableSchema_Document(java.lang.String tableName)
|
java.lang.String |
getTagRequest()
|
java.lang.String |
getTagResponse()
|
User |
getUser(java.lang.String acctID,
java.lang.String userID)
|
org.w3c.dom.Document |
getVersion_Document()
|
java.lang.String |
getVersion()
|
static boolean |
isGTSResponse(org.w3c.dom.Document gtsRespDoc)
Returns true if the specified Document is a "GTSResponse" |
static boolean |
isGTSResponseError(org.w3c.dom.Document gtsRespDoc)
Returns the "result" tag value for the if the specified GTSResponse result attribute is "error" |
protected void |
printDBRecordInfo(DBRecord dbr)
|
ServiceRequest |
setAuthorization(java.lang.String acctID,
java.lang.String userID,
java.lang.String passwd)
|
Methods inherited from class org.opengts.util.ServiceRequest |
---|
_sendRequest_HTTP, _sendRequest_JMX, _sendRequest, appendRequestBody, getAttrAccount, getAttrAuth, getAttrCommand, getAttrPassword, getAttrResult, getAttrUser, getCommand, getJMXObjectName, getJMXServiceURL, getTagAuthorization, getURL, isJMX, sendRequest, sendRequest, setAuthorization, setAuthorization, setCommand, setJMXObjectName, setRequestBody, setURL, setURL, setURL, toString, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GTSServiceRequest(java.lang.String url) throws java.net.MalformedURLException
url
- The service URL
java.net.MalformedURLException
Method Detail |
---|
public static boolean isGTSResponse(org.w3c.dom.Document gtsRespDoc)
public static java.lang.String getGTSReportsResult(org.w3c.dom.Document gtsRespDoc)
gtsRespDoc
- The GTSResponse tag document
public static boolean isGTSResponseError(org.w3c.dom.Document gtsRespDoc)
gtsRespDoc
- The GTSResponse tag document
public static java.lang.String getGTSResponse_Message_code(org.w3c.dom.Document gtsRespDoc)
public ServiceRequest setAuthorization(java.lang.String acctID, java.lang.String userID, java.lang.String passwd)
public org.w3c.dom.Document getCommandOnly_Document(java.lang.String command) throws java.io.IOException
command
- The command name
java.io.IOException
protected java.lang.StringBuffer formatTime(java.lang.StringBuffer sb, java.lang.String pfx, DateTime dt, boolean isTimeTo)
sb
- The StringBufferpfx
- The prefixing spaces to prepend to the formatted tag elemeentdt
- The date/time to formatisTimeTo
- True to create tag "TimeTo", false for "TimeFrom"
protected org.w3c.dom.NodeList getResponseNodeList(org.w3c.dom.Document respDoc, java.lang.String tag)
respDoc
- The response XML Documenttag
- The tag for which a NodeList is returned
public org.w3c.dom.Document getVersion_Document() throws java.io.IOException
java.io.IOException
public java.lang.String getVersion() throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document getProperty_Document(java.lang.String propKey) throws java.io.IOException
java.io.IOException
public java.lang.String getProperty(java.lang.String propKey) throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document getTableSchema_Document(java.lang.String tableName) throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document getMapDataDevice_Document(java.lang.String deviceID, DateTime frDT, DateTime toDT) throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document getMapDataGroup_Document(java.lang.String groupID, DateTime frDT, DateTime toDT) throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document getReportDevice_Document(java.lang.String reportName, java.lang.String deviceID, DateTime frDT, DateTime toDT) throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document getReportGroup_Document(java.lang.String reportName, java.lang.String groupID, DateTime frDT, DateTime toDT) throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document getReportJob_Document(java.lang.String reportGroupTag) throws java.io.IOException
java.io.IOException
protected void printDBRecordInfo(DBRecord dbr)
public Account getAccount(java.lang.String acctID) throws DBException
DBException
public java.lang.String[] getAccountIDs() throws DBException
DBException
public User getUser(java.lang.String acctID, java.lang.String userID) throws DBException
DBException
public Device getDevice(java.lang.String acctID, java.lang.String devID) throws DBException
DBException
public java.lang.String getTagResponse()
getTagResponse
in class ServiceRequest
public java.lang.String getTagRequest()
getTagRequest
in class ServiceRequest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |