Examples of URI


Examples of org.apache.xerces.utils.URI

     */
    public Object validate(String content, Object state)
    throws InvalidDatatypeValueException
    {
        StringTokenizer parsedList = null;
        URI             uriContent = null;

        if ( (fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0 ) {
            if ( fRegex == null || fRegex.matches( content) == false )
                throw new InvalidDatatypeValueException("Value '"+content+
                                                        "' does not match regular expression facet" + fPattern );
        }

          
        try {
            if( content.trim().length() != 0 ) //Validate non null URI
                uriContent = new URI( content );
            //else it is valid anyway
        } catch URI.MalformedURIException ex ) {
            throw new InvalidDatatypeValueException("Value '"+content+
                                                                        "' is a Malformed URI ");

View Full Code Here

Examples of org.apache.xml.utils.URI

         boolean switchBackProxy = ((oldProxySet != null)
                                    && (oldProxyHost != null)
                                    && (oldProxyPort != null));

         // calculate new URI
         URI uriNew = getNewURI(uri.getNodeValue(), BaseURI);

         // if the URI contains a fragment, ignore it
         URI uriNewNoFrag = new URI(uriNew);

         uriNewNoFrag.setFragment(null);

         URL url = new URL(uriNewNoFrag.toString());
         URLConnection urlConnection = url.openConnection();

         {

            // set proxy pass
View Full Code Here

Examples of org.asynchttpclient.uri.Uri

    private static String computeRealmURI(Realm realm) {
        if (realm.isTargetProxy()) {
            return "/";
        } else {
            Uri uri = realm.getUri();
            if (realm.isUseAbsoluteURI()) {
                return realm.isOmitQuery() && MiscUtils.isNonEmpty(uri.getQuery()) ? uri.withNewQuery(null).toUrl() : uri.toUrl();
            } else {
                String path = getNonEmptyPath(uri);
                return realm.isOmitQuery() || !MiscUtils.isNonEmpty(uri.getQuery()) ? path : path + "?" + uri.getQuery();
            }
        }
    }
View Full Code Here

Examples of org.browsermob.proxy.jetty.util.URI

        setTunnelTimeoutMs(300000);
    }

    @Override
    public void handleConnect(String pathInContext, String pathParams, HttpRequest request, HttpResponse response) throws HttpException, IOException {
        URI uri = request.getURI();
        String original = uri.toString();
        String host = original;
        String port = null;
        int colon = original.indexOf(':');
        if (colon != -1) {
            host = original.substring(0, colon);
            port = original.substring(colon + 1);
        }
        String altHost = httpClient.remappedHost(host);
        if (altHost != null) {
            if (port != null) {
                uri.setURI(altHost + ":" + port);
            } else {
                uri.setURI(altHost);
            }
        }

        super.handleConnect(pathInContext, pathParams, request, response);
    }
View Full Code Here

Examples of org.corrib.s3b.mbb.beans.rdf.URI

  }
 
  protected static Resource getResource(org.openrdf.model.Resource resource) {
    if (resource instanceof org.openrdf.model.URI) {
      org.openrdf.model.URI uri = (org.openrdf.model.URI)resource;
      return new URI(uri.getURI());
    } else if (resource instanceof org.openrdf.model.BNode) {
      org.openrdf.model.BNode bNode = (org.openrdf.model.BNode)resource;
      return new BNode(bNode.getID());
    } else {
      return null;
View Full Code Here

Examples of org.eclipse.emf.common.util.URI

                        uri,
                        FILE_PREFIX,
                        filePrefixWithSlash);
            }
        }
        final URI resourceUri = URI.createURI(uri);
        if (resourceUri == null)
        {
            throw new RepositoryFacadeException("The path '" + uri + "' is not a valid URI");
        }
        return resourceUri;
View Full Code Here

Examples of org.eclipse.wst.common.uriresolver.internal.URI

      }

      // Make sure the key is a fully qualified URI in the cases
      // where the key type is "System ID" or "Schema location"
      if ((keyField.getText().length() > 0) && (getKeyType() == ICatalogEntry.ENTRY_TYPE_SYSTEM)) {
        URI uri = URI.createURI(keyField.getText());
        if (uri.scheme() == null) {
          warningMessage = XMLCatalogMessages.UI_WARNING_SHOULD_BE_FULLY_QUALIFIED_URI;
        }
      }

      if ((errorMessage == null) && checkboxButton.getSelection() && (webAddressField.getText().trim().length() == 0)) {
View Full Code Here

Examples of org.eweb4j.mvc.config.bean.Uri

      List<Uri> uris = inter.getUri();
      final int size = uris.size();
      int result = 1;
      for (int i = 0; i < size; i++) {
        Uri u = uris.get(i);
        String type = u.getType();
        String value = u.getValue();
        int c = 1;

        if ("start".equalsIgnoreCase(type) && uri.startsWith(value))
          // 以url开头
          ;
View Full Code Here

Examples of org.exolab.jms.net.uri.URI

     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
            throws Exception {
        TCPSRequestInfo info =
                new TCPSRequestInfo(new URI("tcps://localhost:5099"));
        SSLProperties properties =
                SSLUtil.getSSLProperties("test.keystore", "secret");
        info.setSSLProperties(properties);
        return info;
    }
View Full Code Here

Examples of org.gedcomx.common.URI

   * @param gedxPersonId the identifier of the GEDCOM X person
   * @return a ResourceReference instance for the person entry of the identified person
   */
  public static ResourceReference toReference(String gedxPersonId) {
    ResourceReference reference = new ResourceReference();
    reference.setResource( new URI(getPersonReference(gedxPersonId)));
    return reference;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.