org.jboss.wsf.spi.deployment.Endpoint.getAddress()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中org.jboss.wsf.spi.deployment.Endpoint.getAddress()方法的一些代码示例,展示了Endpoint.getAddress()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Endpoint.getAddress()方法的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.Endpoint
类名称:Endpoint
方法名:getAddress

Endpoint.getAddress介绍

[英]Get endpoint address
[中]获取端点地址

代码示例

代码示例来源:origin: org.jboss.ws.native/jbossws-native-core

@Override
public String getEndpointAddress()
{
 return endpoint != null ? endpoint.getAddress() : null;
}

代码示例来源:origin: org.jboss.ws/jbossws-common

public String getAddress()
{
 return endpoint.getAddress();
}

代码示例来源:origin: org.jboss.ws/jbossws-framework

public String getAddress()
{
 return endpoint.getAddress();
}

代码示例来源:origin: org.jboss.ws/jbossws-framework

private String getAddressHtmlTag(final URL requestURL, final Endpoint ep) throws IOException
{
 String address = createAddress(requestURL, ep.getAddress());
 
 if (address.startsWith("jms")) 
 {
   return ep.getAddress();
 }
 
 StringBuilder sb = new StringBuilder("<a href='");
 sb.append(address);
 sb.append("?wsdl'>");
 sb.append(address);
 sb.append("</a>");
 return sb.toString();
}

代码示例来源:origin: org.jboss.ws.native/jbossws-native-core

private URL getRequestURL(Endpoint endpoint, InvocationContext context) throws MalformedURLException
{
 URL requestURL = null;
 if (context instanceof ServletRequestContext)
 {
   ServletRequestContext reqContext = (ServletRequestContext)context;
   HttpServletRequest req = reqContext.getHttpServletRequest();
   requestURL = new URL(req.getRequestURL().toString());
 }
 else if (context.getProperty(Constants.NETTY_MESSAGE) != null)
 {
   requestURL = new URL(endpoint.getAddress());
 }
 
 return requestURL;
}

代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration

@Override
public void start(final Deployment dep) {
  final DeploymentUnit unit = dep.getAttachment(DeploymentUnit.class);
  if (unit instanceof WSEndpointDeploymentUnit) return;
  for (final Endpoint endpoint : dep.getService().getEndpoints()) {
    ModelNode op = null;
    try {
      op = unit.createDeploymentSubModel(WSExtension.SUBSYSTEM_NAME,
          PathElement.pathElement(ENDPOINT, URLEncoder.encode(getId(endpoint), "UTF-8")));
    } catch (final UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
    op.get(ENDPOINT_NAME).set(getName(endpoint));
    op.get(ENDPOINT_CONTEXT).set(getContext(endpoint));
    op.get(ENDPOINT_CLASS).set(endpoint.getTargetBeanName());
    op.get(ENDPOINT_TYPE).set(endpoint.getType().toString());
    op.get(ENDPOINT_WSDL).set(endpoint.getAddress() + "?wsdl");
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration

@Override
public void start(final Deployment dep) {
  final DeploymentUnit unit = dep.getAttachment(DeploymentUnit.class);
  if (unit instanceof WSEndpointDeploymentUnit) return;
  final DeploymentResourceSupport deploymentResourceSupport = unit.getAttachment(Attachments.DEPLOYMENT_RESOURCE_SUPPORT);
  for (final Endpoint endpoint : dep.getService().getEndpoints()) {
    final ModelNode endpointModel;
    try {
      endpointModel = deploymentResourceSupport.getDeploymentSubModel(WSExtension.SUBSYSTEM_NAME,
          PathElement.pathElement(ENDPOINT, URLEncoder.encode(getId(endpoint), "UTF-8")));
    } catch (final UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
    endpointModel.get(ENDPOINT_NAME).set(getName(endpoint));
    endpointModel.get(ENDPOINT_CONTEXT).set(getContext(endpoint));
    endpointModel.get(ENDPOINT_CLASS).set(endpoint.getTargetBeanName());
    endpointModel.get(ENDPOINT_TYPE).set(endpoint.getType().toString());
    endpointModel.get(ENDPOINT_WSDL).set(endpoint.getAddress() + "?wsdl");
  }
}

代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration

@Override
public void start(final Deployment dep) {
  final DeploymentUnit unit = dep.getAttachment(DeploymentUnit.class);
  if (unit instanceof WSEndpointDeploymentUnit) return;
  final DeploymentResourceSupport deploymentResourceSupport = unit.getAttachment(Attachments.DEPLOYMENT_RESOURCE_SUPPORT);
  for (final Endpoint endpoint : dep.getService().getEndpoints()) {
    final ModelNode endpointModel;
    try {
      endpointModel = deploymentResourceSupport.getDeploymentSubModel(WSExtension.SUBSYSTEM_NAME,
          PathElement.pathElement(ENDPOINT, URLEncoder.encode(getId(endpoint), "UTF-8")));
    } catch (final UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
    endpointModel.get(ENDPOINT_NAME).set(getName(endpoint));
    endpointModel.get(ENDPOINT_CONTEXT).set(getContext(endpoint));
    endpointModel.get(ENDPOINT_CLASS).set(endpoint.getTargetBeanName());
    endpointModel.get(ENDPOINT_TYPE).set(endpoint.getType().toString());
    endpointModel.get(ENDPOINT_WSDL).set(endpoint.getAddress() + "?wsdl");
  }
}

代码示例来源:origin: org.jboss.ws.native/jbossws-native-core

public void handleWSDLRequest(Endpoint endpoint, OutputStream outStream, InvocationContext context)
{
 if (ROOT_LOGGER.isTraceEnabled())
   ROOT_LOGGER.trace("handleWSDLRequest: " + endpoint.getName());
 try
 {
   if (this.validInvocationContext(context))
   {
    final String resourcePath = this.getResourcePath(context);
    final URL requestURL = this.getRequestURL(endpoint, context);
    this.handleWSDLRequest(endpoint, outStream, resourcePath, requestURL);
   }
   else
   {
    final String epAddress = endpoint.getAddress();
    if (epAddress == null)
      throw MESSAGES.invalidEndpointAddress(epAddress);
    final URL wsdlUrl = new URL(epAddress + "?wsdl");
    IOUtils.copyStream(outStream, wsdlUrl.openStream());
   }
 }
 catch (RuntimeException rte)
 {
   throw rte;
 }
 catch (IOException ex)
 {
   throw new WSException(ex);
 }
}

代码示例来源:origin: org.jboss.ws.cxf/jbossws-cxf-server

result.setAddress(SysPropUtils.expandSystemProperty(ep.getAddress()));
result.setImplementor(ep.getTargetBeanName());
result.setMtomEnabled(isMtomEnabled(ep.getTargetBeanClass()));

代码示例来源:origin: org.jboss.ws.cxf/jbossws-cxf-server

for (org.apache.cxf.endpoint.Endpoint ep : eps) {
 if (ep.getService().getName().equals(depEp.getProperty(Message.WSDL_SERVICE)) && ep.getEndpointInfo().getName().equals(depEp.getProperty(Message.WSDL_PORT))
     && ep.getEndpointInfo().getAddress().equals(depEp.getAddress()) ) {
   depEp.addAttachment(org.apache.cxf.endpoint.Endpoint.class, ep);

相关文章