public WSAddressingException(final String faultCode, final String msg, final Throwable t) { super(msg, t); this.setFaultCode(faultCode); }
public Map<FeatureConstants, Object> getFeatures() { return this.reader.getFeatures(); }
public void setFeature(final String name, final boolean value) throws IllegalArgumentException { this.writer.setFeature(name, value); }
protected EprNew convertEndpointReferenceType(final AbsItfEndpointReferenceType odlDesc, final Class<EprImpl> eprimpl, final Class<RefImpl> refimpl) throws WSAddressingException { EprNew newEpr = null; try { // create new description newEpr = this.convertEndpointReferenceType(odlDesc, eprimpl); // add reference parameters type if (odlDesc.getReferenceParameters() != null){ RefNew newRef = this.convertReferenceParametersType(odlDesc.getReferenceParameters(), refimpl); newEpr.setReferenceParameters(newRef); } } catch (final IllegalArgumentException e) { throw new WSAddressingException(e); } catch (final SchemaException e) { throw new WSAddressingException(e); } return newEpr; }
private EprNew convertEndpointReferenceType(final AbsItfEndpointReferenceType odlDesc, final Class<EprImpl> eprimpl) throws WSAddressingException { EprNew newDesc = null; try { // create new description final Constructor c = eprimpl.getConstructors()[0]; newDesc = (EprNew) c.newInstance(odlDesc); } catch (final IllegalArgumentException e) { throw new WSAddressingException(e); } catch (final InstantiationException e) { throw new WSAddressingException(e); } catch (final IllegalAccessException e) { throw new WSAddressingException(e); } catch (final InvocationTargetException e) { throw new WSAddressingException(e); } return newDesc; }
public EndpointReferenceType readEndpointReferenceType(final Document wsdlDocument) throws WSAddressingException { EndpointReferenceType res = null; final com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType desc = this.reader.readEndpointReferenceType(wsdlDocument); res = WSAddressing4AgreementFactory.newInstance().addMonitoringElmt2Description(desc); return res; }
@SuppressWarnings("unchecked") public String writeEndpointReferenceType(final EndpointReferenceType eprDef) throws WSAddressingException { String res = null; res = this.writer.writeEndpointReferenceType(((DecoratorEndpointReferenceTypeImpl) eprDef).getFirstEpr()); return res; }
@SuppressWarnings("unchecked") public Document getDocument(final EndpointReferenceType eprDef) throws WSAddressingException { Document res = null; res = this.writer.getDocument(((DecoratorEndpointReferenceTypeImpl) eprDef).getFirstEpr()); return res; }
public void setFeature(final FeatureConstants name, final Object value) throws WSAddressingException { this.reader.setFeature(name, value); }
public boolean getFeature(final String name) throws IllegalArgumentException { return this.writer.getFeature(name); }
public Object getFeature(final FeatureConstants name) { return this.reader.getFeature(name); }
/** * Please use this equals method instead of using :<code> * value().equals(value) * </code> which is * almost 10 times slower... * * @param value * @return */ public boolean equals(final String val) { return this.toString().equals(val); }
public WSAddressingReaderImpl() throws WSAddressingException { try { WSAddressingJAXBContext.createDefaultContext(); } catch (final WSAddressingException e) { throw new WSAddressingException(e); } }
public EndpointReferenceType readEndpointReferenceType(final URI wsdlURI, final InputSource inputSource) throws WSAddressingException { EndpointReferenceType res = null; final com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType desc = this.reader.readEndpointReferenceType(wsdlURI, inputSource); res = WSAddressing4AgreementFactory.newInstance().addMonitoringElmt2Description(desc); return res; }
public WSAddressingReaderImpl(final List<Class> addedObjectFactories) throws WSAddressingException { try { WSAddressingJAXBContext.createContextWithOtherObjectFactories(addedObjectFactories); } catch (final WSAddressingException e) { throw new WSAddressingException(e); } }
public EndpointReferenceType readEndpointReferenceType(final URI wsdlURI) throws WSAddressingException { EndpointReferenceType res = null; final com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType desc = this.reader.readEndpointReferenceType(wsdlURI); res = WSAddressing4AgreementFactory.newInstance().addMonitoringElmt2Description(desc); return res; }
public WSAddressingWriterImpl() throws WSAddressingException { try { WSAddressingJAXBContext.createDefaultContext(); } catch (final WSAddressingException e) { throw new WSAddressingException(e); } }
public WSAddressingWriterImpl(List<Class> addedObjectFactories) throws WSAddressingException { try { WSAddressingJAXBContext.createContextWithOtherObjectFactories(addedObjectFactories); } catch (final WSAddressingException e) { throw new WSAddressingException(e); } }
/** * Private object initializations */ public static void createDefaultContext() throws WSAddressingException { final SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); try { WSAddressingJAXBContext.jaxbContext = JAXBContext .newInstance(defaultObjectFactories.toArray(new Class[defaultObjectFactories.size()])); } catch (final JAXBException e) { throw new WSAddressingException(e); } }
public JAXBElement<MonitoringPropertiesType> convertElement2MonitoringPropertiesType(final Element pltElmt) throws WSAddressingException { JAXBElement<MonitoringPropertiesType> res = null; try { res = WSAddressing4AgreementJAXBContext.getJaxbContext().createUnmarshaller().unmarshal(pltElmt, MonitoringPropertiesType.class); } catch (final JAXBException e) { throw new WSAddressingException( "Failed to build Java bindings from WSDL descriptor XML document", e); } return res; }