/** * The path where this service is mounted. * * @return The path where this service is mounted. */ public String getPath() { for (EndpointImplementation implementation : getEndpointImplementations()) { String path = implementation.getPath(); if (path != null) { return path; } } return "/" + getServiceName(); }
@Override public String getSlug() { return "service_" + this.ei.getContext().getJaxbContext().getNamespacePrefixes().get(this.ei.getTargetNamespace()) + "_" + this.ei.getServiceName(); }
@Override public String getLabel() { Label label = this.ei.getAnnotation(Label.class); if (label != null) { return label.value(); } JavaDoc.JavaDocTagList tags = this.ei.getJavaDoc().get("label"); if (tags != null && tags.size() > 0) { String tag = tags.get(0).trim(); if (!tag.isEmpty()) { return tag; } } String serviceName = this.ei.getServiceName(); if (serviceName.equals(this.ei.getSimpleName() + "Service")) { serviceName = this.ei.getSimpleName().toString(); } return serviceName; }
urlPattern = urlPattern.substring(0, urlPattern.length() - 2) + ei.getServiceName();