public abstract class TestAbstract extends TestEmpty
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
CHALLENGE_PATH
Field description
|
protected static String |
COMMAND_EL_NAME
Field description
|
protected boolean |
disconnectOk
Field description
|
protected Exception |
exception
Field description
|
protected static String[] |
FIELD_VALUE_PATH
Field description
|
protected static String[] |
IQ_COMMAND_X_PATH
Field description
|
protected static String |
IQ_EL_NAME
Field description
|
protected static String[] |
IQ_QUERY_NAME_PATH
Field description
|
protected static String[] |
IQ_QUERY_OS_PATH
Field description
|
protected static String[] |
IQ_QUERY_PATH
Field description
|
protected static String[] |
IQ_QUERY_VERSION_PATH
Field description
|
protected Params |
params
Field description
|
protected static String |
QUERY_EL_NAME
Field description
|
protected tigase.xml.Element |
reply
Field description
|
protected ResultCode |
resultCode
Field description
|
protected static String[] |
STREAM_MECHANISMS_PATH
Field description
|
protected boolean |
timeoutOk
Field description
|
protected Map<String,String> |
vars
Field description
|
stanza_variables| Constructor and Description |
|---|
TestAbstract(String[] base_xmlns,
String[] implemented,
String[] depends,
String[] optional)
Creates a new
TestAbstract instance. |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getElementData(String element)
Method description
|
tigase.xml.Element |
getLastResult()
Method description
|
abstract Attribute[] |
getRespElementAttributes(String element)
Method description
|
abstract String[] |
getRespElementNames(String element)
Method description
|
abstract String[] |
getRespOptionalNames(String element)
Method description
|
ResultCode |
getResultCode()
Describe
getResultCode method here. |
String |
getResultMessage()
Describe
getResultMessage method here. |
boolean |
hasAttributes(tigase.xml.Element elem,
Attribute[] attrs)
Method description
|
void |
init(Params params,
Map<String,String> vars)
Describe
init method here. |
abstract String |
nextElementName(tigase.xml.Element reply)
Method description
|
void |
release()
Method description
|
void |
replyElement(tigase.xml.Element reply)
Method description
|
boolean |
run()
Describe
run method here. |
static String |
substituteVars(String data,
String[] vars,
String[] vals)
Method description
|
protected static final String[] CHALLENGE_PATH
protected static final String COMMAND_EL_NAME
protected static final String[] FIELD_VALUE_PATH
protected static final String IQ_EL_NAME
protected static final String QUERY_EL_NAME
protected static final String[] IQ_QUERY_VERSION_PATH
protected static final String[] IQ_QUERY_PATH
protected static final String[] IQ_QUERY_OS_PATH
protected static final String[] IQ_QUERY_NAME_PATH
protected static final String[] IQ_COMMAND_X_PATH
protected static final String[] STREAM_MECHANISMS_PATH
protected Exception exception
protected Params params
protected tigase.xml.Element reply
protected boolean timeoutOk
protected ResultCode resultCode
protected boolean disconnectOk
public abstract String getElementData(String element) throws Exception
element - Exceptionpublic abstract Attribute[] getRespElementAttributes(String element) throws Exception
element - Exceptionpublic abstract String[] getRespElementNames(String element) throws Exception
element - Exceptionpublic abstract String[] getRespOptionalNames(String element) throws Exception
element - Exceptionpublic abstract String nextElementName(tigase.xml.Element reply) throws Exception
reply - Exceptionpublic static String substituteVars(String data, String[] vars, String[] vals)
data - vars - vals - public tigase.xml.Element getLastResult()
getLastResult in interface TestIfcgetLastResult in class TestEmptypublic ResultCode getResultCode()
getResultCode method here.getResultCode in interface TestIfcgetResultCode in class TestEmptyint valuepublic String getResultMessage()
getResultMessage method here.getResultMessage in interface TestIfcgetResultMessage in class TestEmptyString valuepublic boolean hasAttributes(tigase.xml.Element elem,
Attribute[] attrs)
elem - attrs - public void release()
public void replyElement(tigase.xml.Element reply)
throws Exception
reply - ExceptionCopyright © 2005–2014 Tigase. All rights reserved.