/** * Creates a new <code>AbstractMarshallingPayloadEndpoint</code> with the given marshaller and unmarshaller. * * @param marshaller the marshaller to use * @param unmarshaller the unmarshaller to use */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller, Unmarshaller unmarshaller) { Assert.notNull(marshaller, "marshaller must not be null"); Assert.notNull(unmarshaller, "unmarshaller must not be null"); setMarshaller(marshaller); setUnmarshaller(unmarshaller); }
/** * Creates a new {@code AbstractMarshallingPayloadEndpoint} with the given marshaller and unmarshaller. * * @param marshaller the marshaller to use * @param unmarshaller the unmarshaller to use */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller, Unmarshaller unmarshaller) { Assert.notNull(marshaller, "marshaller must not be null"); Assert.notNull(unmarshaller, "unmarshaller must not be null"); setMarshaller(marshaller); setUnmarshaller(unmarshaller); }
/** * Creates a new {@code AbstractMarshallingPayloadEndpoint} with the given marshaller and unmarshaller. * * @param marshaller the marshaller to use * @param unmarshaller the unmarshaller to use */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller, Unmarshaller unmarshaller) { Assert.notNull(marshaller, "marshaller must not be null"); Assert.notNull(unmarshaller, "unmarshaller must not be null"); setMarshaller(marshaller); setUnmarshaller(unmarshaller); }
/** * Creates a new {@code AbstractMarshallingPayloadEndpoint} with the given marshaller and unmarshaller. * * @param marshaller the marshaller to use * @param unmarshaller the unmarshaller to use */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller, Unmarshaller unmarshaller) { Assert.notNull(marshaller, "marshaller must not be null"); Assert.notNull(unmarshaller, "unmarshaller must not be null"); setMarshaller(marshaller); setUnmarshaller(unmarshaller); }
/** * Creates a new {@code AbstractMarshallingPayloadEndpoint} with the given marshaller. The given {@link * Marshaller} should also implements the {@link Unmarshaller}, since it is used for both marshalling and * unmarshalling. If it is not, an exception is thrown. * * <p>Note that all {@link Marshaller} implementations in Spring-WS also implement the {@link Unmarshaller} interface, * so that you can safely use this constructor. * * @param marshaller object used as marshaller and unmarshaller * @throws IllegalArgumentException when {@code marshaller} does not implement the {@link Unmarshaller} * interface * @see #AbstractMarshallingPayloadEndpoint(Marshaller,Unmarshaller) */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller) { Assert.notNull(marshaller, "marshaller must not be null"); if (!(marshaller instanceof Unmarshaller)) { throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " + "interface. Please set an Unmarshaller explicitly by using the " + "AbstractMarshallingPayloadEndpoint(Marshaller, Unmarshaller) constructor."); } else { setMarshaller(marshaller); setUnmarshaller((Unmarshaller) marshaller); } }
/** * Creates a new <code>AbstractMarshallingPayloadEndpoint</code> with the given marshaller. The given {@link * Marshaller} should also implements the {@link Unmarshaller}, since it is used for both marshalling and * unmarshalling. If it is not, an exception is thrown. * <p/> * Note that all {@link Marshaller} implementations in Spring-WS also implement the {@link Unmarshaller} interface, * so that you can safely use this constructor. * * @param marshaller object used as marshaller and unmarshaller * @throws IllegalArgumentException when <code>marshaller</code> does not implement the {@link Unmarshaller} * interface * @see #AbstractMarshallingPayloadEndpoint(Marshaller,Unmarshaller) */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller) { Assert.notNull(marshaller, "marshaller must not be null"); if (!(marshaller instanceof Unmarshaller)) { throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " + "interface. Please set an Unmarshaller explicitly by using the " + "AbstractMarshallingPayloadEndpoint(Marshaller, Unmarshaller) constructor."); } else { setMarshaller(marshaller); setUnmarshaller((Unmarshaller) marshaller); } }
/** * Creates a new {@code AbstractMarshallingPayloadEndpoint} with the given marshaller. The given {@link * Marshaller} should also implements the {@link Unmarshaller}, since it is used for both marshalling and * unmarshalling. If it is not, an exception is thrown. * * <p>Note that all {@link Marshaller} implementations in Spring-WS also implement the {@link Unmarshaller} interface, * so that you can safely use this constructor. * * @param marshaller object used as marshaller and unmarshaller * @throws IllegalArgumentException when {@code marshaller} does not implement the {@link Unmarshaller} * interface * @see #AbstractMarshallingPayloadEndpoint(Marshaller,Unmarshaller) */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller) { Assert.notNull(marshaller, "marshaller must not be null"); if (!(marshaller instanceof Unmarshaller)) { throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " + "interface. Please set an Unmarshaller explicitly by using the " + "AbstractMarshallingPayloadEndpoint(Marshaller, Unmarshaller) constructor."); } else { setMarshaller(marshaller); setUnmarshaller((Unmarshaller) marshaller); } }
/** * Creates a new {@code AbstractMarshallingPayloadEndpoint} with the given marshaller. The given {@link * Marshaller} should also implements the {@link Unmarshaller}, since it is used for both marshalling and * unmarshalling. If it is not, an exception is thrown. * * <p>Note that all {@link Marshaller} implementations in Spring-WS also implement the {@link Unmarshaller} interface, * so that you can safely use this constructor. * * @param marshaller object used as marshaller and unmarshaller * @throws IllegalArgumentException when {@code marshaller} does not implement the {@link Unmarshaller} * interface * @see #AbstractMarshallingPayloadEndpoint(Marshaller,Unmarshaller) */ protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller) { Assert.notNull(marshaller, "marshaller must not be null"); if (!(marshaller instanceof Unmarshaller)) { throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " + "interface. Please set an Unmarshaller explicitly by using the " + "AbstractMarshallingPayloadEndpoint(Marshaller, Unmarshaller) constructor."); } else { setMarshaller(marshaller); setUnmarshaller((Unmarshaller) marshaller); } }