@Override public String query() { return uri.query(); }
@Override public String query() { return internalUri.query(); }
@Override public String query() { return base.query(); }
@Override public @Nullable String query() { return this.uri.query(); }
@Override public boolean canHandle(URI uri) { if (DISABLED) return false; // check if this uri is a reflective one if (uriIsReflective(uri)) { // it is, check the query string to determine if it is a DescribeFeatureType request String q = uri.query(); if (q != null && !"".equals(q.trim())) { KvpMap kv = parseQueryString(q); if ("DescribeFeatureType".equalsIgnoreCase((String) kv.get("REQUEST")) || (uri.path().endsWith("DescribeFeatureType"))) { return true; } } } return false; }
/** * Creates a new {@code PersistenceURI} from the given {@code uri} by checking the referenced file exists on the * file system. * * @param uri the base {@link URI} * @param scheme the scheme to identify the {@link PersistenceBackendFactory} to use * * @return the created {@link URI} * * @throws NullPointerException if the {@code uri} is {@code null} */ @Nonnull public static URI createFileURI(@Nonnull URI uri, @Nullable String scheme) { checkNotNull(uri); if (isNull(scheme)) { return createURI(uri); } else { return createURI(createHierarchicalURI(scheme, uri.authority(), uri.device(), uri.segments(), uri.query(), uri.fragment())); } }
protected URI normalizePluginURI(URI uri, String fragment) { if (uri.segmentCount() < 2) return uri; // Invalid, just let it go on. // See if already normalized. int u_scoreNdx = uri.segment(1).lastIndexOf('_'); if (u_scoreNdx != -1) { // Not normalized. Remove the version to make it normalized. String[] segments = uri.segments(); segments[1] = segments[1].substring(0, u_scoreNdx); return URI.createHierarchicalURI(uri.scheme(), uri.authority(), uri.device(), segments, uri.query(), fragment); } else return uri; }
String query = rURI.query(); if ("resource=com.nomagic.magicdraw.uml_model.shared_umodel".equals(query)) { for (EObject content : contents) {
resourcePath = path.removeFirstSegments(1); String query = uri.query(); if (query != null && query.length() != 0)
@Nonnull @Override public URI createLocalUri(File file) { checkNotNull(file, "file"); final URI fileUri = URI.createFileURI(file.getAbsolutePath()); final URI uri = URI.createHierarchicalURI(scheme(), fileUri.authority(), fileUri.device(), fileUri.segments(), fileUri.query(), fileUri.fragment()); return createLocalUri(uri); }
@Override public String toFileString() { URI uri = URI.createHierarchicalURI( FILE_SCHEME, internalUri.authority(), internalUri.device(), internalUri.segments(), internalUri.query(), internalUri.fragment()); return uri.toFileString(); }
@Override public String toFileString() { return URI.createHierarchicalURI( SCHEME, base.authority(), base.device(), base.segments(), base.query(), base.fragment() ).toFileString(); }
/** * converts the file URIs with an absent authority to one with an empty */ public URI withEmptyAuthority(final URI uri) { URI _xifexpression = null; if ((uri.isFile() && (uri.authority() == null))) { _xifexpression = URI.createHierarchicalURI(uri.scheme(), "", uri.device(), uri.segments(), uri.query(), uri.fragment()); } else { _xifexpression = uri; } return _xifexpression; } }
String query = uri.query(); URI trimmedURI = uri.trimFragment().trimQuery(); URI result = getInternalURIMap().getURI(trimmedURI);
String query = uri.query(); URI trimmedURI = uri.trimFragment().trimQuery(); URI result = getInternalURIMap().getURI(trimmedURI);
String calendarType = formatURI.query(); if (calendarType == null)
String query = getURI().query(); if (query != null && query.length() != 0)
newQuery = base.query();
Catalog catalog = geoServer.getCatalog(); try { KvpMap kv = parseQueryString(uri.query());
else if (hasPath == baseHasPath && segmentsEqual(base) && query == base.query())