public GetCapabilitiesResponse issueRequest(GetCapabilitiesRequest request) throws IOException, ServiceException { return (GetCapabilitiesResponse) internalIssueRequest(request); }
/** * Description of this service. * * <p>Provides a very quick description of the service, for more information please review the * capabilitie document. * * <p> * * @return description of this service. */ public ServiceInfo getInfo() { synchronized (capabilities) { if (info == null && capabilities != null) { info = createInfo(); } return info; } } /**
@Override public WFSServiceInfo getInfo() { return (WFSServiceInfo) super.getInfo(); }
tempCapabilities = (C) issueRequest(request).getCapabilities(); } catch (ServiceException e) { tempCapabilities = null; clientVersion = before(versions, serverVersion); clientVersion = after(versions, serverVersion);
this.hints = hints; setupSpecifications(); this.capabilities = negotiateVersion(); if (this.capabilities == null) { throw new ServiceException(
public AbstractOpenWebService(Capabilities capabilties, URL serverURL) { if (capabilties == null) { throw new NullPointerException("Capabilities cannot be null."); } if (serverURL == null) { throw new NullPointerException("ServerURL cannot be null"); } setupSpecifications(); for (int i = 0; i < specs.length; i++) { if (specs[i].getVersion().equals(capabilties.getVersion())) { specification = specs[i]; break; } } if (specification == null) { specification = specs[specs.length-1]; LOGGER.warning("Unable to choose a specification based on cached capabilities. " +"Arbitrarily choosing spec '"+specification.getVersion()+"'."); } this.serverURL = serverURL; this.capabilities = capabilties; }
tempCapabilities = (C) issueRequest(request).getCapabilities(); } catch (ServiceException e) { tempCapabilities = null; clientVersion = before(versions, serverVersion); clientVersion = after(versions, serverVersion);
/** * Set up the specifications used and retrieve the Capabilities document * given by serverURL. * * @param serverURL a URL that points to the capabilities document of a server * @throws IOException if there is an error communicating with the server * @throws ServiceException if the server responds with an error */ public AbstractOpenWebService( final URL serverURL ) throws IOException, ServiceException { if (serverURL == null) { throw new NullPointerException("ServerURL cannot be null"); } this.serverURL = serverURL; setupSpecifications(); capabilities = negotiateVersion(); if (capabilities == null) { throw new ServiceException("Unable to retrieve or parse Capabilities document."); } }
tempCapabilities = issueRequest(request).getCapabilities(); } catch (ServiceException e) { tempCapabilities = null; clientVersion = before(versions, serverVersion); clientVersion = after(versions, serverVersion);
this.httpClient = httpClient; setupSpecifications(); this.capabilities = negotiateVersion(); if (this.capabilities == null) { throw new ServiceException("Unable to retrieve or parse Capabilities document.");
@Override protected Response internalIssueRequest(Request request) throws IOException { Response response; try { response = super.internalIssueRequest(request); } catch (ServiceException e) { throw new IOException(e); } return response; }
public ResourceInfo getInfo(R resource) { synchronized (capabilities) { if (!resourceInfo.containsKey(resource)) { resourceInfo.put(resource, createInfo(resource)); } } return resourceInfo.get(resource); }
@Override public WFSServiceInfo getInfo() { return (WFSServiceInfo) super.getInfo(); }
public GetCapabilitiesResponse issueRequest(GetCapabilitiesRequest request) throws IOException, ServiceException { return (GetCapabilitiesResponse) internalIssueRequest(request); }
/** * Description of this service. * <p> * Provides a very quick description of the service, for more information * please review the capabilitie document. * <p> * @return description of this service. */ public ServiceInfo getInfo(){ synchronized ( capabilities ){ if( info == null && capabilities != null){ info = createInfo(); } return info; } } /**
public GetCapabilitiesResponse issueRequest(GetCapabilitiesRequest request) throws IOException, ServiceException { return (GetCapabilitiesResponse) internalIssueRequest(request); }
public ResourceInfo getInfo( R resource ){ synchronized ( capabilities ){ if( !resourceInfo.containsKey( resource ) ){ resourceInfo.put( resource, createInfo( resource ) ); } } return resourceInfo.get( resource ); }
@Override protected Response internalIssueRequest(Request request) throws IOException { Response response; try { response = super.internalIssueRequest(request); } catch (ServiceException e) { throw new IOException(e); } return response; }