test_class.file: common/src/test/java/org/jboss/as/arquillian/container/ManagementClientTest.java
test_class.identifier: ManagementClientTest
test_case.body: @Test
      public void shouldParseBindAllAsLocalhost() {
          String sourceIp = "0.0.0.0";
          String parsedIp = ManagementClient.formatIP(sourceIp);
          Assert.assertEquals("127.0.0.1", parsedIp);
      }
test_case.class_method_signature: ManagementClientTest.shouldParseBindAllAsLocalhost()
test_case.full_signature: @Test public void shouldParseBindAllAsLocalhost()
test_case.identifier: shouldParseBindAllAsLocalhost
test_case.invocations: formatIP assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldParseBindAllAsLocalhost()
focal_class.declarator: logger = Logger.getLogger(ManagementClient.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = Logger.getLogger(ManagementClient.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: SUBDEPLOYMENT = "subdeployment"
focal_class.modifier: private static final
focal_class.original_string: private static final String SUBDEPLOYMENT = "subdeployment";
focal_class.type: String
focal_class.var_name: SUBDEPLOYMENT
focal_class.declarator: UNDERTOW = "undertow"
focal_class.modifier: private static final
focal_class.original_string: private static final String UNDERTOW = "undertow";
focal_class.type: String
focal_class.var_name: UNDERTOW
focal_class.declarator: NAME = "name"
focal_class.modifier: private static final
focal_class.original_string: private static final String NAME = "name";
focal_class.type: String
focal_class.var_name: NAME
focal_class.declarator: SERVLET = "servlet"
focal_class.modifier: private static final
focal_class.original_string: private static final String SERVLET = "servlet";
focal_class.type: String
focal_class.var_name: SERVLET
focal_class.declarator: POSTFIX_WEB = ".war"
focal_class.modifier: private static final
focal_class.original_string: private static final String POSTFIX_WEB = ".war";
focal_class.type: String
focal_class.var_name: POSTFIX_WEB
focal_class.declarator: POSTFIX_EAR = ".ear"
focal_class.modifier: private static final
focal_class.original_string: private static final String POSTFIX_EAR = ".ear";
focal_class.type: String
focal_class.var_name: POSTFIX_EAR
focal_class.declarator: UNDERTOW_SUBSYSTEM_ADDRESS = new ModelNode().add("subsystem", UNDERTOW)
focal_class.modifier: private static final
focal_class.original_string: private static final ModelNode UNDERTOW_SUBSYSTEM_ADDRESS = new ModelNode().add("subsystem", UNDERTOW);
focal_class.type: ModelNode
focal_class.var_name: UNDERTOW_SUBSYSTEM_ADDRESS
focal_class.declarator: mgmtAddress
focal_class.modifier: private final
focal_class.original_string: private final String mgmtAddress;
focal_class.type: String
focal_class.var_name: mgmtAddress
focal_class.declarator: mgmtPort
focal_class.modifier: private final
focal_class.original_string: private final int mgmtPort;
focal_class.type: int
focal_class.var_name: mgmtPort
focal_class.declarator: mgmtProtocol
focal_class.modifier: private final
focal_class.original_string: private final String mgmtProtocol;
focal_class.type: String
focal_class.var_name: mgmtProtocol
focal_class.declarator: client
focal_class.modifier: private final
focal_class.original_string: private final ModelControllerClient client;
focal_class.type: ModelControllerClient
focal_class.var_name: client
focal_class.declarator: config
focal_class.modifier: private final
focal_class.original_string: private final CommonContainerConfiguration config;
focal_class.type: CommonContainerConfiguration
focal_class.var_name: config
focal_class.declarator: initialized = false
focal_class.modifier: private
focal_class.original_string: private boolean initialized = false;
focal_class.type: boolean
focal_class.var_name: initialized
focal_class.declarator: webUri
focal_class.modifier: private
focal_class.original_string: private URI webUri;
focal_class.type: URI
focal_class.var_name: webUri
focal_class.declarator: ejbUri
focal_class.modifier: private
focal_class.original_string: private URI ejbUri;
focal_class.type: URI
focal_class.var_name: ejbUri
focal_class.declarator: undertowSubsystem = null
focal_class.modifier: private
focal_class.original_string: private ModelNode undertowSubsystem = null;
focal_class.type: ModelNode
focal_class.var_name: undertowSubsystem
focal_class.declarator: connection
focal_class.modifier: private
focal_class.original_string: private MBeanServerConnection connection;
focal_class.type: MBeanServerConnection
focal_class.var_name: connection
focal_class.declarator: connector
focal_class.modifier: private
focal_class.original_string: private JMXConnector connector;
focal_class.type: JMXConnector
focal_class.var_name: connector
focal_class.declarator: undertowSubsystemPresent = false
focal_class.modifier: private
focal_class.original_string: private boolean undertowSubsystemPresent = false;
focal_class.type: boolean
focal_class.var_name: undertowSubsystemPresent
focal_class.declarator: jmxSubsystemPresent = false
focal_class.modifier: private
focal_class.original_string: private boolean jmxSubsystemPresent = false;
focal_class.type: boolean
focal_class.var_name: jmxSubsystemPresent
focal_class.declarator: closed = false
focal_class.modifier: private
focal_class.original_string: private boolean closed = false;
focal_class.type: boolean
focal_class.var_name: closed
focal_class.file: common/src/main/java/org/jboss/as/arquillian/container/ManagementClient.java
focal_class.identifier: ManagementClient
focal_class.interfaces: implements Closeable
focal_class.class_method_signature: ManagementClient.ManagementClient(ModelControllerClient client, final String mgmtAddress, final int managementPort, final String protocol)
focal_class.full_signature: public  ManagementClient(ModelControllerClient client, final String mgmtAddress, final int managementPort, final String protocol)
focal_class.identifier: ManagementClient
focal_class.modifiers: public
focal_class.parameters: (ModelControllerClient client, final String mgmtAddress, final int managementPort, final String protocol)
focal_class.signature:  ManagementClient(ModelControllerClient client, final String mgmtAddress, final int managementPort, final String protocol)
focal_class.class_method_signature: ManagementClient.ManagementClient(ModelControllerClient client, final CommonContainerConfiguration config)
focal_class.full_signature: public  ManagementClient(ModelControllerClient client, final CommonContainerConfiguration config)
focal_class.identifier: ManagementClient
focal_class.modifiers: public
focal_class.parameters: (ModelControllerClient client, final CommonContainerConfiguration config)
focal_class.signature:  ManagementClient(ModelControllerClient client, final CommonContainerConfiguration config)
focal_class.class_method_signature: ManagementClient.getControllerClient()
focal_class.full_signature: public ModelControllerClient getControllerClient()
focal_class.identifier: getControllerClient
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ModelControllerClient
focal_class.signature: ModelControllerClient getControllerClient()
focal_class.class_method_signature: ManagementClient.reset()
focal_class.full_signature:  void reset()
focal_class.identifier: reset
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_class.class_method_signature: ManagementClient.init()
focal_class.full_signature: private void init()
focal_class.identifier: init
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: ManagementClient.getWebUri()
focal_class.full_signature: public URI getWebUri()
focal_class.identifier: getWebUri
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: URI
focal_class.signature: URI getWebUri()
focal_class.class_method_signature: ManagementClient.getProtocolMetaData(String deploymentName)
focal_class.full_signature: public ProtocolMetaData getProtocolMetaData(String deploymentName)
focal_class.identifier: getProtocolMetaData
focal_class.modifiers: public
focal_class.parameters: (String deploymentName)
focal_class.return: ProtocolMetaData
focal_class.signature: ProtocolMetaData getProtocolMetaData(String deploymentName)
focal_class.class_method_signature: ManagementClient.isServerInRunningState()
focal_class.full_signature: public boolean isServerInRunningState()
focal_class.identifier: isServerInRunningState
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isServerInRunningState()
focal_class.class_method_signature: ManagementClient.isClosed()
focal_class.full_signature: public boolean isClosed()
focal_class.identifier: isClosed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isClosed()
focal_class.class_method_signature: ManagementClient.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: ManagementClient.defined(final ModelNode node, final String message)
focal_class.full_signature: private static ModelNode defined(final ModelNode node, final String message)
focal_class.identifier: defined
focal_class.modifiers: private static
focal_class.parameters: (final ModelNode node, final String message)
focal_class.return: ModelNode
focal_class.signature: ModelNode defined(final ModelNode node, final String message)
focal_class.class_method_signature: ManagementClient.getBinding(final String protocol, final String socketBinding)
focal_class.full_signature: private URI getBinding(final String protocol, final String socketBinding)
focal_class.identifier: getBinding
focal_class.modifiers: private
focal_class.parameters: (final String protocol, final String socketBinding)
focal_class.return: URI
focal_class.signature: URI getBinding(final String protocol, final String socketBinding)
focal_class.class_method_signature: ManagementClient.formatIP(String ip)
focal_class.full_signature: static String formatIP(String ip)
focal_class.identifier: formatIP
focal_class.modifiers: static
focal_class.parameters: (String ip)
focal_class.return: String
focal_class.signature: String formatIP(String ip)
focal_class.class_method_signature: ManagementClient.isEnterpriseArchive(String deploymentName)
focal_class.full_signature: private boolean isEnterpriseArchive(String deploymentName)
focal_class.identifier: isEnterpriseArchive
focal_class.modifiers: private
focal_class.parameters: (String deploymentName)
focal_class.return: boolean
focal_class.signature: boolean isEnterpriseArchive(String deploymentName)
focal_class.class_method_signature: ManagementClient.isWebArchive(String deploymentName)
focal_class.full_signature: private boolean isWebArchive(String deploymentName)
focal_class.identifier: isWebArchive
focal_class.modifiers: private
focal_class.parameters: (String deploymentName)
focal_class.return: boolean
focal_class.signature: boolean isWebArchive(String deploymentName)
focal_class.class_method_signature: ManagementClient.extractEnterpriseArchiveContexts(HTTPContext context, ModelNode deploymentNode)
focal_class.full_signature: private void extractEnterpriseArchiveContexts(HTTPContext context, ModelNode deploymentNode)
focal_class.identifier: extractEnterpriseArchiveContexts
focal_class.modifiers: private
focal_class.parameters: (HTTPContext context, ModelNode deploymentNode)
focal_class.return: void
focal_class.signature: void extractEnterpriseArchiveContexts(HTTPContext context, ModelNode deploymentNode)
focal_class.class_method_signature: ManagementClient.extractWebArchiveContexts(HTTPContext context, ModelNode deploymentNode)
focal_class.full_signature: private void extractWebArchiveContexts(HTTPContext context, ModelNode deploymentNode)
focal_class.identifier: extractWebArchiveContexts
focal_class.modifiers: private
focal_class.parameters: (HTTPContext context, ModelNode deploymentNode)
focal_class.return: void
focal_class.signature: void extractWebArchiveContexts(HTTPContext context, ModelNode deploymentNode)
focal_class.class_method_signature: ManagementClient.toContextName(String deploymentName)
focal_class.full_signature: private String toContextName(String deploymentName)
focal_class.identifier: toContextName
focal_class.modifiers: private
focal_class.parameters: (String deploymentName)
focal_class.return: String
focal_class.signature: String toContextName(String deploymentName)
focal_class.class_method_signature: ManagementClient.executeForResult(final ModelNode operation)
focal_class.full_signature: private ModelNode executeForResult(final ModelNode operation)
focal_class.identifier: executeForResult
focal_class.modifiers: private
focal_class.parameters: (final ModelNode operation)
focal_class.return: ModelNode
focal_class.signature: ModelNode executeForResult(final ModelNode operation)
focal_class.class_method_signature: ManagementClient.readDeploymentNode(final String deploymentName)
focal_class.full_signature: private ModelNode readDeploymentNode(final String deploymentName)
focal_class.identifier: readDeploymentNode
focal_class.modifiers: private
focal_class.parameters: (final String deploymentName)
focal_class.return: ModelNode
focal_class.signature: ModelNode readDeploymentNode(final String deploymentName)
focal_class.class_method_signature: ManagementClient.checkSuccessful(final ModelNode result,
                                   final ModelNode operation)
focal_class.full_signature: private void checkSuccessful(final ModelNode result,
                                   final ModelNode operation)
focal_class.identifier: checkSuccessful
focal_class.modifiers: private
focal_class.parameters: (final ModelNode result,
                                   final ModelNode operation)
focal_class.return: void
focal_class.signature: void checkSuccessful(final ModelNode result,
                                   final ModelNode operation)
focal_class.class_method_signature: ManagementClient.getConnection()
focal_class.full_signature: private MBeanServerConnection getConnection()
focal_class.identifier: getConnection
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: MBeanServerConnection
focal_class.signature: MBeanServerConnection getConnection()
focal_class.class_method_signature: ManagementClient.getRemoteJMXURL()
focal_class.full_signature: public JMXServiceURL getRemoteJMXURL()
focal_class.identifier: getRemoteJMXURL
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: JMXServiceURL
focal_class.signature: JMXServiceURL getRemoteJMXURL()
focal_class.class_method_signature: ManagementClient.getMgmtPort()
focal_class.full_signature: public int getMgmtPort()
focal_class.identifier: getMgmtPort
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMgmtPort()
focal_class.class_method_signature: ManagementClient.getMgmtAddress()
focal_class.full_signature: public String getMgmtAddress()
focal_class.identifier: getMgmtAddress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMgmtAddress()
focal_class.class_method_signature: ManagementClient.getMgmtProtocol()
focal_class.full_signature: public String getMgmtProtocol()
focal_class.identifier: getMgmtProtocol
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMgmtProtocol()
focal_class.class_method_signature: ManagementClient.getRemoteEjbURL()
focal_class.full_signature: public URI getRemoteEjbURL()
focal_class.identifier: getRemoteEjbURL
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: URI
focal_class.signature: URI getRemoteEjbURL()
focal_class.class_method_signature: ManagementClient.checkState()
focal_class.full_signature: private void checkState()
focal_class.identifier: checkState
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkState()
focal_method.body: static String formatIP(String ip) {
          //it appears some system can return a binding with the zone specifier on the end
          if (ip.contains(":") && ip.contains("%")) {
              ip = ip.split("%")[0];
          }
          if (ip.equals("0.0.0.0")) {
              logger.debug("WildFly is bound to 0.0.0.0 which is correct, setting client to 127.0.0.1");
              ip = "127.0.0.1";
          }
          return ip;
      }
focal_method.class_method_signature: ManagementClient.formatIP(String ip)
focal_method.full_signature: static String formatIP(String ip)
focal_method.identifier: formatIP
focal_method.invocations: contains contains split equals debug
focal_method.modifiers: static
focal_method.parameters: (String ip)
focal_method.return: String
focal_method.signature: String formatIP(String ip)