gpt4 book ai didi

org.codehaus.enunciate.contract.jaxws.WebMethod.getAnnotation()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 10:23:05 25 4
gpt4 key购买 nike

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

WebMethod.getAnnotation介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The simple name for client-side code generation.
 *
 * @return The simple name for client-side code generation.
 */
public String getClientSimpleName() {
 String clientSimpleName = getSimpleName();
 ClientName clientName = getAnnotation(ClientName.class);
 if (clientName != null) {
  clientSimpleName = clientName.value();
 }
 return clientSimpleName;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The SOAP parameter style of this web method.
 *
 * @return The SOAP parameter style of this web method.
 */
public SOAPBinding.ParameterStyle getSoapParameterStyle() {
 SOAPBinding.ParameterStyle style = getDeclaringEndpointInterface().getSoapParameterStyle();
 SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class);
 if (bindingInfo != null) {
  style = bindingInfo.parameterStyle();
 }
 return style;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The local name of the output.
 *
 * @return The local name of the output.
 */
public String getElementName() {
 String name = webMethod.getSimpleName() + "Response";
 javax.xml.ws.ResponseWrapper annotation = webMethod.getAnnotation(javax.xml.ws.ResponseWrapper.class);
 if ((annotation != null) && (annotation.localName() != null) && (!"".equals(annotation.localName()))) {
  name = annotation.localName();
 }
 return name;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The name of the JAXWS response bean.
 *
 * @return The name of the JAXWS response bean.
 */
public String getResponseBeanName() {
 String capitalizedName = this.webMethod.getSimpleName();
 capitalizedName = Character.toString(capitalizedName.charAt(0)).toUpperCase() + capitalizedName.substring(1);
 String responseBeanName = this.webMethod.getDeclaringEndpointInterface().getPackage().getQualifiedName() + ".jaxws." + capitalizedName + "Response";
 javax.xml.ws.ResponseWrapper annotation = webMethod.getAnnotation(javax.xml.ws.ResponseWrapper.class);
 if ((annotation != null) && (annotation.className() != null) && (!"".equals(annotation.className()))) {
  responseBeanName = annotation.className();
 }
 return responseBeanName;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The local name of the output.
 *
 * @return The local name of the output.
 */
public String getElementName() {
 String name = webMethod.getOperationName() + "Response";
 javax.xml.ws.ResponseWrapper annotation = webMethod.getAnnotation(javax.xml.ws.ResponseWrapper.class);
 if ((annotation != null) && (annotation.localName() != null) && (!"".equals(annotation.localName()))) {
  name = annotation.localName();
 }
 return name;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The SOAP binding style of this web method.
 *
 * @return The SOAP binding style of this web method.
 */
public SOAPBinding.Style getSoapBindingStyle() {
 SOAPBinding.Style style = getDeclaringEndpointInterface().getSoapBindingStyle();
 SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class);
 if (bindingInfo != null) {
  style = bindingInfo.style();
 }
 return style;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The SOAP binding use of this web method.
 *
 * @return The SOAP binding use of this web method.
 */
public SOAPBinding.Use getSoapUse() {
 SOAPBinding.Use use = getDeclaringEndpointInterface().getSoapUse();
 SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class);
 if (bindingInfo != null) {
  use = bindingInfo.use();
 }
 return use;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The SOAP parameter style of this web method.
 *
 * @return The SOAP parameter style of this web method.
 */
public SOAPBinding.ParameterStyle getSoapParameterStyle() {
 SOAPBinding.ParameterStyle style = getDeclaringEndpointInterface().getSoapParameterStyle();
 SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class);
 if (bindingInfo != null) {
  style = bindingInfo.parameterStyle();
 }
 return style;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The SOAP binding use of this web method.
 *
 * @return The SOAP binding use of this web method.
 */
public SOAPBinding.Use getSoapUse() {
 SOAPBinding.Use use = getDeclaringEndpointInterface().getSoapUse();
 SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class);
 if (bindingInfo != null) {
  use = bindingInfo.use();
 }
 return use;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The local name of the element.
 *
 * @return The local name of the element.
 */
public String getElementName() {
 String name = webMethod.getSimpleName();
 javax.xml.ws.RequestWrapper annotation = webMethod.getAnnotation(javax.xml.ws.RequestWrapper.class);
 if ((annotation != null) && (annotation.localName() != null) && (!"".equals(annotation.localName()))) {
  name = annotation.localName();
 }
 return name;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The name of the JAXWS request bean.
 *
 * @return The name of the JAXWS request bean.
 */
public String getRequestBeanName() {
 String capitalizedName = this.webMethod.getSimpleName();
 capitalizedName = Character.toString(capitalizedName.charAt(0)).toUpperCase() + capitalizedName.substring(1);
 String requestBeanName = this.webMethod.getDeclaringEndpointInterface().getPackage().getQualifiedName() + ".jaxws." + capitalizedName;
 javax.xml.ws.RequestWrapper annotation = webMethod.getAnnotation(javax.xml.ws.RequestWrapper.class);
 if ((annotation != null) && (annotation.className() != null) && (!"".equals(annotation.className()))) {
  requestBeanName = annotation.className();
 }
 return requestBeanName;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The name of the JAXWS request bean.
 *
 * @return The name of the JAXWS request bean.
 */
public String getRequestBeanName() {
 String capitalizedName = this.webMethod.getSimpleName();
 capitalizedName = Character.toString(capitalizedName.charAt(0)).toUpperCase() + capitalizedName.substring(1);
 String requestBeanName = this.webMethod.getDeclaringEndpointInterface().getPackage().getQualifiedName() + ".jaxws." + capitalizedName;
 javax.xml.ws.RequestWrapper annotation = webMethod.getAnnotation(javax.xml.ws.RequestWrapper.class);
 if ((annotation != null) && (annotation.className() != null) && (!"".equals(annotation.className()))) {
  requestBeanName = annotation.className();
 }
 return requestBeanName;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The name of the JAXWS response bean.
 *
 * @return The name of the JAXWS response bean.
 */
public String getResponseBeanName() {
 String capitalizedName = this.webMethod.getSimpleName();
 capitalizedName = Character.toString(capitalizedName.charAt(0)).toUpperCase() + capitalizedName.substring(1);
 String responseBeanName = this.webMethod.getDeclaringEndpointInterface().getPackage().getQualifiedName() + ".jaxws." + capitalizedName + "Response";
 javax.xml.ws.ResponseWrapper annotation = webMethod.getAnnotation(javax.xml.ws.ResponseWrapper.class);
 if ((annotation != null) && (annotation.className() != null) && (!"".equals(annotation.className()))) {
  responseBeanName = annotation.className();
 }
 return responseBeanName;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The local name of the element.
 *
 * @return The local name of the element.
 */
public String getElementName() {
 String name = webMethod.getOperationName();
 javax.xml.ws.RequestWrapper annotation = webMethod.getAnnotation(javax.xml.ws.RequestWrapper.class);
 if ((annotation != null) && (annotation.localName() != null) && (!"".equals(annotation.localName()))) {
  name = annotation.localName();
 }
 return name;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The SOAP binding style of this web method.
 *
 * @return The SOAP binding style of this web method.
 */
public SOAPBinding.Style getSoapBindingStyle() {
 SOAPBinding.Style style = getDeclaringEndpointInterface().getSoapBindingStyle();
 SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class);
 if (bindingInfo != null) {
  style = bindingInfo.style();
 }
 return style;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

public String getElementNamespace() {
 String targetNamespace = webMethod.getDeclaringEndpointInterface().getTargetNamespace();
 javax.xml.ws.RequestWrapper annotation = webMethod.getAnnotation(javax.xml.ws.RequestWrapper.class);
 if ((annotation != null) && (annotation.localName() != null) && (!"".equals(annotation.targetNamespace()))) {
  targetNamespace = annotation.targetNamespace();
 }
 return targetNamespace;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

public String getElementNamespace() {
 String targetNamespace = webMethod.getDeclaringEndpointInterface().getTargetNamespace();
 javax.xml.ws.RequestWrapper annotation = webMethod.getAnnotation(javax.xml.ws.RequestWrapper.class);
 if ((annotation != null) && (annotation.localName() != null) && (!"".equals(annotation.targetNamespace()))) {
  targetNamespace = annotation.targetNamespace();
 }
 return targetNamespace;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The local namespace of the output.
 *
 * @return The local namespace of the output.
 */
public String getElementNamespace() {
 String namespace = webMethod.getDeclaringEndpointInterface().getTargetNamespace();
 javax.xml.ws.ResponseWrapper annotation = webMethod.getAnnotation(javax.xml.ws.ResponseWrapper.class);
 if ((annotation != null) && (annotation.targetNamespace() != null) && (!"".equals(annotation.targetNamespace()))) {
  namespace = annotation.targetNamespace();
 }
 return namespace;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The local namespace of the output.
 *
 * @return The local namespace of the output.
 */
public String getElementNamespace() {
 String namespace = webMethod.getDeclaringEndpointInterface().getTargetNamespace();
 javax.xml.ws.ResponseWrapper annotation = webMethod.getAnnotation(javax.xml.ws.ResponseWrapper.class);
 if ((annotation != null) && (annotation.targetNamespace() != null) && (!"".equals(annotation.targetNamespace()))) {
  namespace = annotation.targetNamespace();
 }
 return namespace;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

protected WebResult(TypeMirror delegate, WebMethod method) {
 super(delegate);
 this.method = method;
 javax.jws.WebResult annotation = method.getAnnotation(javax.jws.WebResult.class);
 String name = "return";
 if ((annotation != null) && (annotation.name() != null) && (!"".equals(annotation.name()))) {
  name = annotation.name();
 }
 this.name = name;
 String targetNamespace = method.getDeclaringEndpointInterface().getTargetNamespace();
 if ((annotation != null) && (annotation.targetNamespace() != null) && (!"".equals(annotation.targetNamespace()))) {
  targetNamespace = annotation.targetNamespace();
 }
 this.targetNamespace = targetNamespace;
 String partName = "return";
 if ((annotation != null) && (!"".equals(annotation.partName()))) {
  partName = annotation.partName();
 }
 this.partName = partName;
 this.header = ((annotation != null) && (annotation.header()));
 this.adapterType = AdapterUtil.findAdapterType(method);
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com