@Override public Object getProperty(String key) throws PropertyException { return this.jaxbUnmarshaller.getProperty(key); }
@Override protected void preReadFrom(final Class<Object> type, final Type genericType, final Annotation[] annotations, final MediaType mediaType, final MultivaluedMap<String, String> httpHeaders, final Unmarshaller unmarshaller) throws JAXBException { super.preReadFrom(type, genericType, annotations, mediaType, httpHeaders, unmarshaller); // Entity Filtering. if (unmarshaller.getProperty(MarshallerProperties.OBJECT_GRAPH) == null) { final Object objectGraph = provider.get().getFilteringObject(genericType, false, annotations); if (objectGraph != null) { unmarshaller.setProperty(MarshallerProperties.OBJECT_GRAPH, objectGraph); } } } }
public Object getProperty(String s) throws PropertyException { return unmarshaller.getProperty(s); }
public Object getProperty(String name) throws PropertyException { return delegate.getProperty(name); }
public Object getProperty(String key) throws PropertyException { return this.jaxbUnmarshaller.getProperty(key); }
/** * Delegates to the wrapped unmarshaller. This method is invoked by the parent * class if the given name was not one of the {@link XML} constants. */ @Override Object getStandardProperty(final String name) throws PropertyException { return unmarshaller.getProperty(name); }
/** * Delegates to the wrapped unmarshaller. This method is invoked by the parent * class if the given name was not one of the {@link XML} constants. */ @Override Object getStandardProperty(final String name) throws PropertyException { return unmarshaller.getProperty(name); }
public Object getProperty(String s) throws PropertyException { return unmarshaller.getProperty(s); }
public Object getProperty(String s) throws PropertyException { return unmarshaller.getProperty(s); }
@Override public Object getProperty(String key) throws PropertyException { return this.jaxbUnmarshaller.getProperty(key); }
public Object getProperty(String s) throws PropertyException { return unmarshaller.getProperty(s); }
@Override public Object getProperty( final String name ) throws PropertyException { return unmarshaller.getProperty( name ); }
public Object getProperty(String name) throws PropertyException { return unmarshaller.getProperty(name); }
@Override public Object getProperty(String key) throws PropertyException { return this.jaxbUnmarshaller.getProperty(key); }
public Object getProperty(String name) throws PropertyException { return unmarshaller.getProperty(name); }
public Object getProperty(String key) throws PropertyException { return this.jaxbUnmarshaller.getProperty(key); }
public Object getProperty(String key) throws PropertyException { return this.jaxbUnmarshaller.getProperty(key); }
public Object getProperty(String name) throws PropertyException { return getUnmarshaller().getProperty(name); }
@Override protected void preReadFrom(final Class<Object> type, final Type genericType, final Annotation[] annotations, final MediaType mediaType, final MultivaluedMap<String, String> httpHeaders, final Unmarshaller unmarshaller) throws JAXBException { super.preReadFrom(type, genericType, annotations, mediaType, httpHeaders, unmarshaller); // Entity Filtering. if (unmarshaller.getProperty(MarshallerProperties.OBJECT_GRAPH) == null) { final Object objectGraph = provider.get().getFilteringObject(genericType, false, annotations); if (objectGraph != null) { unmarshaller.setProperty(MarshallerProperties.OBJECT_GRAPH, objectGraph); } } } }
public Unmarshaller build() { return JaxbCallback.execute(() -> { JAXBContext jAXBContext = JAXBContext.newInstance(JaxbUtil.JAXB_CLASSES); Unmarshaller unmarshaller = jAXBContext.createUnmarshaller(); if (!beanvalidation) { Enum enu = Enum.valueOf(Class.class.cast(unmarshaller .getProperty("eclipselink.beanvalidation.mode") .getClass()), "NONE"); unmarshaller.setProperty("eclipselink.beanvalidation.mode", enu); } unmarshaller.setProperty("eclipselink.media-type", mediaType.getValue()); if (mediaType == MediaType.JSON) { unmarshaller.setProperty("eclipselink.json.include-root", false); } return unmarshaller; }); } }