@Override public String toString() { StringBuilder buf = new StringBuilder(Which.which(getClass()) + " Build-Id: " + getBuildId()); buf.append("\nClasses known to this context:\n"); Set<String> names = new TreeSet<String>(); // sort them so that it's easy to read for (Class key : beanInfoMap.keySet()) names.add(key.getName()); for(String name: names) buf.append(" ").append(name).append('\n'); return buf.toString(); }
public static String which( Class clazz ) { return which( clazz.getName(), SecureLoader.getClassClassLoader(clazz)); }
Messages.format(Messages.DOM_IMPL_DOESNT_SUPPORT_CREATELEMENTNS, document.getClass().getName(), Which.which(document.getClass())));
@Override public String toString() { StringBuilder buf = new StringBuilder(Which.which(getClass()) + " Build-Id: " + getBuildId()); buf.append("\nClasses known to this context:\n"); Set<String> names = new TreeSet<String>(); // sort them so that it's easy to read for (Class key : beanInfoMap.keySet()) names.add(key.getName()); for(String name: names) buf.append(" ").append(name).append('\n'); return buf.toString(); }
public static String which( Class clazz ) { return which( clazz.getName(), SecureLoader.getClassClassLoader(clazz)); }
Messages.format(Messages.DOM_IMPL_DOESNT_SUPPORT_CREATELEMENTNS, document.getClass().getName(), Which.which(document.getClass())));
@Override public String toString() { StringBuilder buf = new StringBuilder(Which.which(getClass()) + " Build-Id: " + getBuildId()); buf.append("\nClasses known to this context:\n"); Set<String> names = new TreeSet<String>(); // sort them so that it's easy to read for (Class key : beanInfoMap.keySet()) names.add(key.getName()); for(String name: names) buf.append(" ").append(name).append('\n'); return buf.toString(); }
public static String which( Class clazz ) { return which( clazz.getName(), SecureLoader.getClassClassLoader(clazz)); }
@Override public String toString() { StringBuilder buf = new StringBuilder(Which.which(getClass()) + " Build-Id: " + getBuildId()); buf.append("\nClasses known to this context:\n"); Set<String> names = new TreeSet<String>(); // sort them so that it's easy to read for (Class key : beanInfoMap.keySet()) names.add(key.getName()); for(String name: names) buf.append(" ").append(name).append('\n'); return buf.toString(); }
public static String which( Class clazz ) { return which( clazz.getName(), SecureLoader.getClassClassLoader(clazz)); }
public static String which( Class clazz ) { return which( clazz.getName(), SecureLoader.getClassClassLoader(clazz)); }
public static String which( Class clazz ) { return which( clazz.getName(), SecureLoader.getClassClassLoader(clazz)); }
public MessageFactory getMessageFactory() { try { return SAAJFactory.getMessageFactory(saajFactoryString); } catch (SOAPException e) { throw new Error(e); } catch (NoSuchMethodError e) { // SAAJ 1.3 is not in the classpath LinkageError x = new LinkageError("You are loading old SAAJ from "+ Which.which(MessageFactory.class)); x.initCause(e); throw x; } }
public MessageFactory getMessageFactory() { try { return SAAJFactory.getMessageFactory(saajFactoryString); } catch (SOAPException e) { throw new Error(e); } catch (NoSuchMethodError e) { // SAAJ 1.3 is not in the classpath LinkageError x = new LinkageError("You are loading old SAAJ from "+ Which.which(MessageFactory.class)); x.initCause(e); throw x; } }
public SOAPFactory getSOAPFactory() { try { return SAAJFactory.getSOAPFactory(saajFactoryString); } catch (SOAPException e) { throw new Error(e); } catch (NoSuchMethodError e) { // SAAJ 1.3 is not in the classpath LinkageError x = new LinkageError("You are loading old SAAJ from "+ Which.which(MessageFactory.class)); x.initCause(e); throw x; } }
public MessageFactory getMessageFactory() { try { return SAAJFactory.getMessageFactory(saajFactoryString); } catch (SOAPException e) { throw new Error(e); } catch (NoSuchMethodError e) { // SAAJ 1.3 is not in the classpath LinkageError x = new LinkageError("You are loading old SAAJ from "+ Which.which(MessageFactory.class)); x.initCause(e); throw x; } }
public SOAPFactory getSOAPFactory() { try { return SAAJFactory.getSOAPFactory(saajFactoryString); } catch (SOAPException e) { throw new Error(e); } catch (NoSuchMethodError e) { // SAAJ 1.3 is not in the classpath LinkageError x = new LinkageError("You are loading old SAAJ from "+ Which.which(MessageFactory.class)); x.initCause(e); throw x; } }
public SOAPFactory getSOAPFactory() { try { return SAAJFactory.getSOAPFactory(saajFactoryString); } catch (SOAPException e) { throw new Error(e); } catch (NoSuchMethodError e) { // SAAJ 1.3 is not in the classpath LinkageError x = new LinkageError("You are loading old SAAJ from "+ Which.which(MessageFactory.class)); x.initCause(e); throw x; } }
private SOAPVersion(String httpBindingId, String nsUri, String contentType, String implicitRole, String roleAttributeName, String saajFactoryString, QName faultCodeMustUnderstand, String faultCodeClientLocalName, String faultCodeServerLocalName,Set<String> requiredRoles) { this.httpBindingId = httpBindingId; this.nsUri = nsUri; this.contentType = contentType; this.implicitRole = implicitRole; this.implicitRoleSet = Collections.singleton(implicitRole); this.roleAttributeName = roleAttributeName; this.saajFactoryString = saajFactoryString; try { saajMessageFactory = MessageFactory.newInstance(saajFactoryString); saajSoapFactory = SOAPFactory.newInstance(saajFactoryString); } catch (SOAPException e) { throw new Error(e); } catch (NoSuchMethodError e) { // SAAJ 1.3 is not in the classpath LinkageError x = new LinkageError("You are loading old SAAJ from "+ Which.which(MessageFactory.class)); x.initCause(e); throw x; } this.faultCodeMustUnderstand = faultCodeMustUnderstand; this.requiredRoles = requiredRoles; this.faultCodeClient = new QName(nsUri,faultCodeClientLocalName); this.faultCodeServer = new QName(nsUri,faultCodeServerLocalName); }
/** * Returns a corresponding feature for a feature annotation(i.e which has * {@link WebServiceFeatureAnnotation} meta annotation) * * @return corresponding feature for the annotation * null, if the annotation is nota feature annotation */ public static WebServiceFeature getFeature(Annotation a) { WebServiceFeature ftr = null; if (!(a.annotationType().isAnnotationPresent(WebServiceFeatureAnnotation.class))) { ftr = null; } else if (a instanceof Addressing) { Addressing addAnn = (Addressing) a; try { ftr = new AddressingFeature(addAnn.enabled(), addAnn.required(),addAnn.responses()); } catch(NoSuchMethodError e) { //throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses. throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class)))); } } else if (a instanceof MTOM) { MTOM mtomAnn = (MTOM) a; ftr = new MTOMFeature(mtomAnn.enabled(), mtomAnn.threshold()); } else if (a instanceof RespectBinding) { RespectBinding rbAnn = (RespectBinding) a; ftr = new RespectBindingFeature(rbAnn.enabled()); } else { ftr = getWebServiceFeatureBean(a); } return ftr; }