QueueInfoResponseParser( final ResponseDataParser<QueueInfoGetStatusResponseData> responseDataMarshaller, final Map<String, Class<?>> expectedResults ) { this.responseDataMarshaller = responseDataMarshaller; expectedResults.forEach((nodeName, clazz) -> { final Jaxb2Marshaller marshaller = new Jaxb2Marshaller(); marshaller.setMappedClass(clazz); marshaller.setClassesToBeBound(clazz); this.expectedResults.put(nodeName, marshaller); }); }
Jaxb2QueryResponseDataParser(final ResponseDataParser<R> responseDataMarshaller, final Class<R> responseDataType, final Class<C> contentType) { this.responseDataMarshaller = responseDataMarshaller; this.responseDataType = responseDataType; this.contentType = contentType; marshaller = new Jaxb2Marshaller(); marshaller.setClassesToBeBound(contentType); marshaller.setMappedClass(contentType); }
Jaxb2DocumentGenerator(final Class<T> type) { marshaller = new Jaxb2Marshaller(); marshaller.setClassesToBeBound(Documents.class, type); marshaller.setMappedClass(type); }
Jaxb2ResponseDataParser(final ResponseParser responseParser, final Class<R> type) { this.responseParser = responseParser; this.type = type; marshaller = new Jaxb2Marshaller(); marshaller.setClassesToBeBound(type); marshaller.setMappedClass(type); }