@Override public List<ServiceApi> getServiceApis(ApiRegistrationContext context) { return this.context.getEndpointInterfaces().isEmpty() ? Collections.<ServiceApi>emptyList() : Collections.<ServiceApi>singletonList(new JaxwsServiceApi(this.context, context)); }
@Override public Operation findOperationFor(String classname, String method) { if (method.isEmpty() || classname.isEmpty()) { return null; } for (ServiceGroup serviceGroup : getServiceGroups()) { for (Service service : serviceGroup.getServices()) { for (Operation operation : service.getOperations()) { if (operation instanceof OperationImpl) { if (method.startsWith(((OperationImpl)operation).getWebMethod().getSimpleName().toString()) && ((OperationImpl)operation).getWebMethod().getDeclaringEndpointInterface().getQualifiedName().contentEquals(classname)) { return operation; } } } } } return null; }
@Override public Service findServiceFor(String classname) { if (classname.isEmpty()) { return null; } for (ServiceGroup serviceGroup : getServiceGroups()) { for (Service service : serviceGroup.getServices()) { for (Operation operation : service.getOperations()) { if (operation instanceof OperationImpl) { if (((OperationImpl)operation).getWebMethod().getDeclaringEndpointInterface().getQualifiedName().contentEquals(classname)) { return service; } } } } } return null; } }