public URI getPublisher() { try { return capabilities .getService() .getContactInformation() .getContactInfo() .getOnLineResource() .getLinkage(); } catch (NullPointerException publisherNotAvailable) { } try { return new URI(serverURL.getProtocol() + ":" + serverURL.getHost()); } catch (URISyntaxException e) { } return null; }
public URI getPublisher() { try { return capabilities .getService() .getContactInformation() .getContactInfo() .getOnLineResource() .getLinkage(); } catch (NullPointerException publisherNotAvailable) { } try { return new URI(serverURL.getProtocol() + ":" + serverURL.getHost()); } catch (URISyntaxException e) { } return null; }