@Override public List<ServiceGroup> getServiceGroups() { Map<String, WsdlInfo> wsdls = this.context.getWsdls(); ArrayList<ServiceGroup> serviceGroups = new ArrayList<ServiceGroup>(); for (WsdlInfo wsdlInfo : wsdls.values()) { serviceGroups.add(new ServiceGroupImpl(wsdlInfo, registrationContext)); } return serviceGroups; }
@Override public List<ServiceApi> getServiceApis(ApiRegistrationContext context) { return this.context.getEndpointInterfaces().isEmpty() ? Collections.<ServiceApi>emptyList() : Collections.<ServiceApi>singletonList(new JaxwsServiceApi(this.context, context)); }
protected WebParam(VariableElement delegate, WebMethod method, int parameterIndex, EnunciateJaxwsContext context) { super(delegate, context.getContext().getProcessingEnvironment()); this.context = context; this.method = method; this.parameterIndex = parameterIndex; if (this.method == null) { throw new IllegalArgumentException("A web method must be provided."); } this.annotation = delegate.getAnnotation(javax.jws.WebParam.class); this.adapterType = JAXWSUtil.findAdapterType(this, context.getJaxbContext()); this.useSourceParameterNames = context.isUseSourceParameterNames(); }
@Override public Set<Syntax> getSyntaxes(ApiRegistrationContext context) { return this.context.getEndpointInterfaces().isEmpty() ? Collections.<Syntax>emptySet() : Collections.<Syntax>singleton(new SyntaxImpl(this.context.getJaxbContext(), context)); }
public EndpointImplementation(TypeElement delegate, EndpointInterface endpointInterface, EnunciateJaxwsContext context) { super(delegate, context.getContext().getProcessingEnvironment()); this.context = context; this.endpointInterface = endpointInterface; this.facets.addAll(Facet.gatherFacets(delegate, context.getContext())); this.facets.addAll(endpointInterface.getFacets()); }
debug("Added %s as a JAX-WS endpoint interface.", ei.getQualifiedName()); if (getContext().getProcessingEnvironment().findSourcePosition(ei) == null) { OneTimeLogMessage.SOURCE_FILES_NOT_FOUND.log(getContext()); debug("Unable to find source file for %s.", ei.getQualifiedName());
@Override public void call(EnunciateContext context) { jaxwsContext = new EnunciateJaxwsContext(this.jaxbModule.getJaxbContext(), isUseSourceParameterNames()); boolean aggressiveWebMethodExcludePolicy = isAggressiveWebMethodExcludePolicy(); jaxwsContext.add(ei); addReferencedDataTypeDefinitions(ei);
protected WebResult(TypeMirror delegate, WebMethod method, EnunciateJaxwsContext context) { super(delegate, context.getContext().getProcessingEnvironment()); this.context = context; this.method = method; this.annotation = method.getAnnotation(javax.jws.WebResult.class); String partName = "return"; if ((this.annotation != null) && (!"".equals(this.annotation.partName()))) { partName = this.annotation.partName(); } this.partName = partName; this.header = ((this.annotation != null) && (this.annotation.header())); this.adapterType = JAXBUtil.findAdapterType(method, context.getJaxbContext()); String name = "return"; if ((this.annotation != null) && (this.annotation.name() != null) && (!"".equals(this.annotation.name()))) { name = this.annotation.name(); this.elementName = name; } else if (!isHeader() && isImplicitSchemaElement()) { this.elementName = method.getSimpleName() + "Response"; } else if (this.header) { this.elementName = ""; } else { this.elementName = name; } this.name = name; }
@Override public String getContextPath() { return this.context.getContextPath(); }
@Override public List<? extends Operation> getOperations() { ArrayList<Operation> operations = new ArrayList<Operation>(); FacetFilter facetFilter = this.ei.getContext().getContext().getConfiguration().getFacetFilter(); for (WebMethod webMethod : this.ei.getWebMethods()) { if (facetFilter.accept(webMethod)) { operations.add(new OperationImpl(webMethod, this, registrationContext)); } } return operations; }
@Override public ServiceGroup getGroup() { return new ServiceGroupImpl(this.ei.getContext().getWsdls().get(this.ei.getTargetNamespace()), this.registrationContext); }
WebMethod example = null; if (this.jaxwsModule != null) { for (EndpointInterface ei : this.jaxwsModule.getJaxwsContext().getEndpointInterfaces()) { for (WebMethod method : ei.getWebMethods()) { if (method.getAnnotation(DocumentationExample.class) != null && !method.getAnnotation(DocumentationExample.class).exclude()) {
@Override public Set<String> getStyles() { return Styles.gatherStyles(this.param, this.param.getContext().getContext().getConfiguration().getAnnotationStyles()); } }
if (this.jaxwsModule != null) { HashMap<String, WebFault> allFaults = new HashMap<String, WebFault>(); for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { String pckg = ei.getPackage().getQualifiedName().toString();
WebMethod example = null; if (this.jaxwsModule != null) { for (EndpointInterface ei : this.jaxwsModule.getJaxwsContext().getEndpointInterfaces()) { for (WebMethod method : ei.getWebMethods()) { if (method.getAnnotation(DocumentationExample.class) != null && !method.getAnnotation(DocumentationExample.class).exclude()) {
@Override public Set<String> getStyles() { return Styles.gatherStyles(this.ei, this.ei.getContext().getContext().getConfiguration().getAnnotationStyles()); }
if (this.jaxwsModule != null) { HashMap<String, WebFault> allFaults = new HashMap<String, WebFault>(); for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { String pckg = ei.getPackage().getQualifiedName().toString();
WebMethod example = null; if (this.jaxwsModule != null && this.jaxwsModule.getJaxwsContext() != null) { for (EndpointInterface ei : this.jaxwsModule.getJaxwsContext().getEndpointInterfaces()) { for (WebMethod method : ei.getWebMethods()) { if (method.getAnnotation(DocumentationExample.class) != null && !method.getAnnotation(DocumentationExample.class).exclude()) {
@Override public Set<String> getStyles() { return Styles.gatherStyles(this.webMethod, this.webMethod.getContext().getContext().getConfiguration().getAnnotationStyles()); }
protected File copyResources() { File resourcesDir = getResourcesDir(); resourcesDir.mkdirs(); try { if (this.jaxwsModule != null) { for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { if (wsdlInfo.getWsdlFile() != null) { wsdlInfo.getWsdlFile().writeTo(resourcesDir); } } } for (SchemaInfo schemaInfo : this.jaxbModule.getJaxbContext().getSchemas().values()) { if (schemaInfo.getSchemaFile() != null) { schemaInfo.getSchemaFile().writeTo(resourcesDir); } } } catch (IOException e) { throw new EnunciateException(e); } return resourcesDir; }