67686970717273
return App.createApp(); } @Override protected void configureClient(ClientConfig config) { config.register(new MoxyXmlFeature()); }
72737475767778
Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex); } } public static ResourceConfig createApp() { return new ResourceConfig().packages("org.glassfish.jersey.examples.xmlmoxy").register(new MoxyXmlFeature()); }
233234235236237238239
} } @Override protected Application configure() { return ((ResourceConfig) super.configure()).register(new MoxyXmlFeature(SimpleBean.class)); }
239240241242243244245
} @Override protected void configureClient(ClientConfig config) { super.configureClient(config); config.register(new MoxyXmlFeature(SimpleBean.class)); }