/** * This doesn't have anything to do with the spec, but can be used in case a bean is needed to be * generated for an RPC input message. The bean name will be generated in accordance with the instructions * given in the specification that apply to document/literal wrapped request beans. * * @return A possible request bean name. */ public String getRequestBeanName() { String capitalizedName = this.webMethod.getSimpleName().toString(); capitalizedName = Character.toString(capitalizedName.charAt(0)).toUpperCase() + capitalizedName.substring(1); return this.webMethod.getDeclaringEndpointInterface().getPackage().getQualifiedName() + ".jaxws." + capitalizedName; }
/** * This doesn't have anything to do with the spec, but can be used in case a bean is needed to be * generated for an RPC output message. The bean name will be generated in accordance with the instructions * given in the specification that apply to document/literal wrapped response beans. * * @return A possible response bean name. */ public String getResponseBeanName() { String capitalizedName = this.webMethod.getSimpleName().toString(); capitalizedName = Character.toString(capitalizedName.charAt(0)).toUpperCase() + capitalizedName.substring(1); return this.webMethod.getDeclaringEndpointInterface().getPackage().getQualifiedName() + ".jaxws." + capitalizedName + "Response"; }
/** * Calculates a namespace URI for a given package. Default implementation uses the algorithm defined in * section 3.2 of the jax-ws spec. * * @return The calculated namespace uri. */ protected String calculateNamespaceURI() { PackageElement pkg = getPackage(); if ((pkg == null) || ("".equals(pkg.getQualifiedName().toString()))) { throw new EnunciateException(getQualifiedName() + ": a web service in no package must specify a target namespace."); } String[] tokens = pkg.getQualifiedName().toString().split("\\."); String uri = "http://"; for (int i = tokens.length - 1; i >= 0; i--) { uri += tokens[i]; if (i != 0) { uri += "."; } } uri += "/"; return uri; }
/** * The name of the JAXWS request bean. * * @return The name of the JAXWS request bean. */ public String getRequestBeanName() { String capitalizedName = this.webMethod.getSimpleName().toString(); 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; }
/** * The name of the JAXWS response bean. * * @return The name of the JAXWS response bean. */ public String getResponseBeanName() { String capitalizedName = this.webMethod.getSimpleName().toString(); 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; }
public static AdapterType findAdapterType(WebParam parameter, EnunciateJaxbContext context) { return findAdapterType((DecoratedTypeMirror) parameter.asType(), parameter, parameter.getWebMethod().getDeclaringEndpointInterface().getPackage(), context); } }
for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { String pckg = ei.getPackage().getQualifiedName().toString(); if (!packageToNamespaceConversions.containsKey(pckg)) { packageToNamespaceConversions.put(pckg, packageToNamespace(pckg));
for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { String pckg = ei.getPackage().getQualifiedName().toString(); if (!packageToNamespaceConversions.containsKey(pckg)) { packageToNamespaceConversions.put(pckg, packageToNamespace(pckg));
@Override public List<String> getSeeAlso() { JavaDoc.JavaDocTagList tags = this.ei.getJavaDoc(this.registrationContext.getTagHandler()).get("see"); if (tags == null) { tags = ((DecoratedElement) this.ei.getPackage()).getJavaDoc(this.registrationContext.getTagHandler()).get("see"); } return tags; }
@Override public String getSince() { JavaDoc.JavaDocTagList tags = this.ei.getJavaDoc(this.registrationContext.getTagHandler()).get("since"); if (tags == null) { tags = ((DecoratedElement) this.ei.getPackage()).getJavaDoc(this.registrationContext.getTagHandler()).get("since"); } return tags == null ? null : tags.toString(); }