本文整理汇总了Java中org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription类的典型用法代码示例。如果您正苦于以下问题:Java ProtocolDescription类的具体用法?Java ProtocolDescription怎么用?Java ProtocolDescription使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProtocolDescription类属于org.jboss.arquillian.container.spi.client.protocol包,在下文中一共展示了ProtocolDescription类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: configureArquillianForRemoteWildfly
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
private void configureArquillianForRemoteWildfly(GenericContainer dockerContainer, ContainerRegistry registry) {
Integer wildflyHttpPort = dockerContainer.getMappedPort(WILDFLY_HTTP_PORT);
Integer wildflyManagementPort = dockerContainer.getMappedPort(WILDFLY_MANAGEMENT_PORT);
String containerIpAddress = dockerContainer.getContainerIpAddress();
Container arquillianContainer = registry.getContainers().iterator().next();
ContainerDef containerConfiguration = arquillianContainer.getContainerConfiguration();
containerConfiguration.property(ContainerConfiguration.MANAGEMENT_ADDRESS_KEY, containerIpAddress);
containerConfiguration.property(ContainerConfiguration.MANAGEMENT_PORT_KEY,
String.valueOf(wildflyManagementPort));
containerConfiguration.property(ContainerConfiguration.USERNAME_KEY, "admin");
containerConfiguration.property(ContainerConfiguration.PASSWORD_KEY, "Admin#007");
ProtocolDef protocolConfiguration = arquillianContainer
.getProtocolConfiguration(new ProtocolDescription(ServletProtocolDefinition.NAME));
protocolConfiguration.property(ServletProtocolDefinition.HOST_KEY, containerIpAddress);
protocolConfiguration.property(ServletProtocolDefinition.PORT_KEY, String.valueOf(wildflyHttpPort));
}
开发者ID:kaiwinter,项目名称:testcontainers-examples,代码行数:19,代码来源:WildflyMariaDBDockerExtension.java
示例2: generateProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
private ProtocolDescription generateProtocol(Method deploymentMethod)
{
if (deploymentMethod.isAnnotationPresent(OverProtocol.class))
{
return new ProtocolDescription(deploymentMethod.getAnnotation(OverProtocol.class).value());
}
return new FurnaceProtocolDescription();
}
开发者ID:forge,项目名称:furnace,代码行数:9,代码来源:FurnaceDeploymentScenarioGenerator.java
示例3: setup
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
@Override
public void setup(final Configuration configuration) {
this.configuration = configuration;
this.defaultProtocol = new ProtocolDescription(configuration.getArquillianProtocol());
handlePrefix();
ArquillianUtil.preLoadClassesAsynchronously(configuration.getPreloadClasses());
}
开发者ID:apache,项目名称:tomee,代码行数:10,代码来源:TomEEContainer.java
示例4: generateProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
/**
* @param deploymentMethod
* @return
*/
private ProtocolDescription generateProtocol(Method deploymentMethod)
{
if (deploymentMethod.isAnnotationPresent(OverProtocol.class))
{
return new ProtocolDescription(deploymentMethod.getAnnotation(OverProtocol.class).value());
}
return ProtocolDescription.DEFAULT;
}
开发者ID:koentsje,项目名称:forge-furnace,代码行数:13,代码来源:ForgeDeploymentScenarioGenerator.java
示例5: getDefaultProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
public ProtocolDescription getDefaultProtocol() {
return target.getDefaultProtocol();
}
开发者ID:arquillian,项目名称:arquillian-container-chameleon,代码行数:4,代码来源:ChameleonContainer.java
示例6: getDefaultProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
public ProtocolDescription getDefaultProtocol() {
return this.adapter.overrideDefaultProtocol() ?
new ProtocolDescription(adapter.getDefaultProtocol()) : delegate.getDefaultProtocol();
}
开发者ID:arquillian,项目名称:arquillian-container-chameleon,代码行数:5,代码来源:TargetController.java
示例7: getDefaultProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
@Override
public ProtocolDescription getDefaultProtocol() {
return new ProtocolDescription("Servlet 3.0");
}
开发者ID:arquillian,项目名称:arquillian-cube,代码行数:5,代码来源:ContainerlessDockerDeployableContainer.java
示例8: getDefaultProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
public ProtocolDescription getDefaultProtocol() {
return new ProtocolDescription("Servlet 3.1");
}
开发者ID:arquillian,项目名称:arquillian-container-undertow,代码行数:4,代码来源:EmbeddedUndertowContainer.java
示例9: getDescription
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
@Override
public ProtocolDescription getDescription()
{
return new FurnaceProtocolDescription();
}
开发者ID:forge,项目名称:furnace,代码行数:6,代码来源:FurnaceProtocol.java
示例10: getDefaultProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
@Override
public ProtocolDescription getDefaultProtocol()
{
return new FurnaceProtocolDescription();
}
开发者ID:forge,项目名称:furnace,代码行数:6,代码来源:FurnaceDeployableContainer.java
示例11: getBaseURI
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
protected URI getBaseURI(Method method) throws Exception {
ProtocolDefinition definition = registry.get().getProtocol(ProtocolDescription.DEFAULT);
ModulesProtocolConfiguration configuration = (ModulesProtocolConfiguration) definition.createProtocolConfiguration();
HTTPContext context = ModulesApi.findHTTPContext(configuration, protocolMetaData, method);
return context.getServlets().get(0).getBaseURI();
}
开发者ID:GoogleCloudPlatform,项目名称:appengine-tck,代码行数:7,代码来源:UserLogin.java
示例12: getDefaultProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
@Override
public ProtocolDescription getDefaultProtocol() {
return defaultProtocol;
}
开发者ID:apache,项目名称:tomee,代码行数:5,代码来源:TomEEContainer.java
示例13: getDefaultProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
@Override
public ProtocolDescription getDefaultProtocol() {
return new ProtocolDescription("Local");
}
开发者ID:apache,项目名称:tomee,代码行数:5,代码来源:OpenEJBDeployableContainer.java
示例14: getDescription
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
@Override
public ProtocolDescription getDescription()
{
return new ForgeProtocolDescription();
}
开发者ID:koentsje,项目名称:forge-furnace,代码行数:6,代码来源:ForgeProtocol.java
示例15: getDefaultProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
@Override
public ProtocolDescription getDefaultProtocol()
{
return new ForgeProtocolDescription();
}
开发者ID:koentsje,项目名称:forge-furnace,代码行数:6,代码来源:ForgeDeployableContainer.java
示例16: getDescription
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.jboss.arquillian.container.test.spi.client.protocol.Protocol#getDescription()
*/
@Override
public ProtocolDescription getDescription() {
return DESCRIPTION;
}
开发者ID:wildfly-swarm,项目名称:wildfly-swarm,代码行数:10,代码来源:DaemonProtocol.java
示例17: getDefaultProtocol
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.jboss.arquillian.container.spi.client.container.DeployableContainer#getDefaultProtocol()
*/
@Override
public ProtocolDescription getDefaultProtocol() {
return DaemonProtocol.DESCRIPTION;
}
开发者ID:wildfly-swarm,项目名称:wildfly-swarm,代码行数:10,代码来源:DaemonDeployableContainerBase.java
注:本文中的org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论