@Test public void testFindResponse() throws Exception { InputStream xmlIS = AlephXServerTest.class.getResourceAsStream("alephXServerFindResponse.xml"); assertNotNull(xmlIS); try { AlephXServer server = new AlephXServer("http: AlephXServer.FindResponse found = server.createFindResponse(xmlIS); assertNotNull(found); assertEquals("183719", found.getNumber()); assertEquals(1, found.getRecordCount()); assertEquals(1, found.getEntryCount()); } finally { xmlIS.close(); } }
FindResponse createFindResponse(InputStream is) { try { return JAXB.unmarshal(is, AlephXServer.FindResponse.class); } finally { try { is.close(); } catch (IOException ex) { LOG.log(Level.SEVERE, null, ex); } } }
AlephXServer implements BibliographicCatalog { FindResponse createFindResponse(InputStream is) { try { return JAXB.unmarshal(is, AlephXServer.FindResponse.class); } finally { try { is.close(); } catch (IOException ex) { LOG.log(Level.SEVERE, null, ex); } } } }
AlephXServer implements BibliographicCatalog { FindResponse createFindResponse(InputStream is) { try { return JAXB.unmarshal(is, AlephXServer.FindResponse.class); } finally { try { is.close(); } catch (IOException ex) { LOG.log(Level.SEVERE, null, ex); } } } AlephXServer(URI uri);  AlephXServer(String url); }
AlephXServer implements BibliographicCatalog { FindResponse createFindResponse(InputStream is) { try { return JAXB.unmarshal(is, AlephXServer.FindResponse.class); } finally { try { is.close(); } catch (IOException ex) { LOG.log(Level.SEVERE, null, ex); } } } AlephXServer(URI uri);  AlephXServer(String url); static AlephXServer get(CatalogConfiguration c); List<MetadataItem> find(String fieldName, String value); @Override List<MetadataItem> find(String fieldName, String value, Locale locale); List<MetadataItem> createDetailResponse(InputStream is, Locale locale); void setLoadBarcodes(boolean loadBarcodes); }
AlephXServer implements BibliographicCatalog { FindResponse createFindResponse(InputStream is) { try { return JAXB.unmarshal(is, AlephXServer.FindResponse.class); } finally { try { is.close(); } catch (IOException ex) { LOG.log(Level.SEVERE, null, ex); } } } AlephXServer(URI uri);  AlephXServer(String url); static AlephXServer get(CatalogConfiguration c); List<MetadataItem> find(String fieldName, String value); @Override List<MetadataItem> find(String fieldName, String value, Locale locale); List<MetadataItem> createDetailResponse(InputStream is, Locale locale); void setLoadBarcodes(boolean loadBarcodes); static final String TYPE; static final String PROPERTY_FIELD_QUERY; static final String PROPERTY_LOAD_BARCODES; }