Example usage for org.dom4j Element attributeValue

List of usage examples for org.dom4j Element attributeValue

Introduction

In this page you can find the example usage for org.dom4j Element attributeValue.

Prototype

String attributeValue(QName qName);

Source Link

Document

This returns the attribute value for the attribute with the given fully qualified name or null if there is no such attribute or the empty string if the attribute value is empty.

Usage

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

/**
 * Parse a ReceiveXXXXXAAA operation//from  www  . j  a v a 2  s. c  o  m
 */
@Deprecated
private Operation parseReceiveRadius(String protocol, boolean request, Element node) throws Exception {
    String type = node.attributeValue("type");

    String result = node.attributeValue("result");

    String channel = node.attributeValue("socketName");

    return new OperationReceiveMsg(StackFactory.PROTOCOL_RADIUS, request, channel, null, type, result, node,
            this);
}

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

/**
 * Parse a ReceiveXXXXXSIP operation/*from  ww  w  . j  av  a 2  s.  c  om*/
 */
@Deprecated
private Operation parseReceiveSIP(String protocol, boolean request, Element node) throws Exception {
    String provider = node.attributeValue("providerName");
    String type = node.attributeValue("method");
    String result = node.attributeValue("result");

    return new OperationReceiveMsg(StackFactory.PROTOCOL_SIP, request, null, provider, type, result, node,
            this);
}

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

/**
 * Parse a ReceiveXXXXXHTTP operation/*from   w w  w  .j  ava  2  s .c  o  m*/
 */
@Deprecated
private Operation parseReceiveHTTP(String protocol, boolean request, Element node) throws Exception {
    String type = node.attributeValue("method");
    String result = node.attributeValue("result");

    return new OperationReceiveMsg(StackFactory.PROTOCOL_HTTP, request, null, null, type, result, node, this);
}

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

/**
 * Parse a ReceivePacketRTP operation//from www  .j a  va 2s . c  om
 */
@Deprecated
private Operation parseReceiveRTP(String protocol, Element node) throws Exception {
    String channel = node.attributeValue("sessionName");
    String type = node.attributeValue("payloadType");

    return new OperationReceiveMsg(StackFactory.PROTOCOL_RTP, true, channel, null, type, null, node, this);
}

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

/**
 * Parse a ReceivePacketTCP operation// www . j  a  v  a 2s . c o  m
 */
@Deprecated
private Operation parseReceiveTCP(String protocol, Element node) throws Exception {
    String channel = node.attributeValue("connexionName");
    return new OperationReceiveMsg(StackFactory.PROTOCOL_TCP, true, channel, null, null, null, node, this);
}

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

/**
 * Parse a ReceivePacketSMTP operation//ww w.  jav  a2  s .co  m
 */
@Deprecated
private Operation parseReceiveSMTP(String protocol, boolean request, Element node) throws Exception {
    String channel = node.attributeValue("sessionName");
    String type = node.attributeValue("commandName");
    String result = node.attributeValue("replyCode");
    return new OperationReceiveMsg(StackFactory.PROTOCOL_SMTP, request, channel, null, type, result, node,
            this);
}

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

/**
 * Parse a ReceivePacketMGCP operation//from  w w  w  .  java  2s. c  o  m
 */
@Deprecated
private Operation parseReceiveMGCP(String protocol, boolean request, Element node) throws Exception {
    String channel = node.attributeValue("sessionName");
    String type = node.attributeValue("commandName");
    String result = node.attributeValue("replyCode");
    return new OperationReceiveMsg(StackFactory.PROTOCOL_MGCP, request, channel, null, type, result, node,
            this);
}

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

@Deprecated
private Operation parseReceiveSTUN(String protocol, boolean request, Element node) throws Exception {
    String channel = node.attributeValue("sessionName");
    String type = node.attributeValue("commandName");
    String result = node.attributeValue("replyCode");
    return new OperationReceiveMsg(StackFactory.PROTOCOL_STUN, request, channel, null, type, result, node,
            this);
}

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

@Deprecated
private Operation parseReceiveH225CS(String protocol, boolean request, Element node) throws Exception {
    String channel = node.attributeValue("sessionName");
    String type = node.attributeValue("commandName");
    String result = node.attributeValue("replyCode");
    return new OperationReceiveMsg(StackFactory.PROTOCOL_H225CS, request, channel, null, type, result, node,
            this);
}

From source file:com.devoteam.srit.xmlloader.core.Scenario.java

License:Open Source License

/**
 * Parse a ReceivePacketUDP operation//from   w  ww .  j  av a  2 s.  co m
 */
@Deprecated
private Operation parseReceiveUDP(String protocol, Element node) throws Exception {
    String channel = node.attributeValue("connexionName");
    return new OperationReceiveMsg(StackFactory.PROTOCOL_UDP, true, channel, null, null, null, node, this);
}