protected boolean isOperationSupported( String operationName ) { if ( metadata == null ) { return false; } return metadata.getOperation( operationName ) != null; }
/** * Returns the endpoint {@link URL}s for the specified operation and method HTTP-POST. * * @return endpoint URLs, can be empty, but never <code>null</code> */ public List<URL> getPostUrls( String operationName ) { Operation operation = getOperation( operationName ); if ( operation != null ) { return operation.getPostUrls(); } return null; }
/** * Returns the endpoint {@link URL}s for the specified operation and method HTTP-GET. * * @return endpoint URLs, can be empty, but never <code>null</code> */ public List<URL> getGetUrls( String operationName ) { Operation operation = getOperation( operationName ); if ( operation != null ) { return operation.getGetUrls(); } return null; }
private void ckeckOperationSupported( String operationName ) throws UnsupportedOperationException { OperationsMetadata om = getOperations(); if ( om.getOperation( operationName ) == null ) throw new UnsupportedOperationException( "Operation " + operationName + " is not supported!" ); }
private Map<WMSRequestType, LinkedList<String>> parseFormats( OperationsMetadata operationsMetadata ) { Map<WMSRequestType, LinkedList<String>> opToFormats = new HashMap<WMSRequestType, LinkedList<String>>(); if ( operationsMetadata == null ) { return opToFormats; } for ( Operation operation : operationsMetadata.getOperation() ) { String operationName = operation.getName(); XPath xp = new XPath( "//" + getPrefix() + operationName + "/" + getPrefix() + "Format", nsContext ); LinkedList<String> formats = new LinkedList<String>(); Object res = evaluateXPath( xp, getRootElement() ); if ( res instanceof List<?> ) { for ( Object o : (List<?>) res ) { formats.add( ( (OMElement) o ).getText() ); } } opToFormats.put( WMSRequestType.valueOf( operationName ), formats ); } return opToFormats; }
for ( Operation operation : operationsMd.getOperation() ) {
for ( Operation operation : operationsMd.getOperation() ) {
RequestUtils.getCurrentThreadRequestParameters().get(), defaultGetFeatureInfo, hardGetFeatureInfo ); Operation op = client.getOperations().getOperation( "GetFeatureInfo" ); if ( op == null ) { throw new OWSException( "The remote WMTS claims not to support GetFeatureInfo.",
Operation operation = getOperations().getOperation( GetRecords.name() ); for ( DCP dcp : operation.getDCPs() ) { for ( Pair<URL, List<Domain>> pe : dcp.getPostEndpoints() ) {