Examples of scheme()


Examples of org.cruxframework.crux.core.server.rest.core.UriBuilder.scheme()

    try
    {
      URL absolute = new URL(request.getRequestURL().toString());

      UriBuilder builder = new UriBuilder();
      builder.scheme(absolute.getProtocol());
      builder.host(absolute.getHost());
      builder.port(absolute.getPort());
      builder.path(absolute.getPath());
      builder.replaceQuery(null);
      absolutePath = builder.build();
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.scheme()

  private static URI normalize(URI uri) {
    String fragment = uri.fragment();
    String query = uri.query();
    URI trimmedURI = uri.trimFragment().trimQuery();
    URI result = trimmedURI;
    String scheme = result.scheme();
    if (scheme == null) {
      if (result.hasAbsolutePath()) {
        result = URI.createURI("file:" + result);
      } else {
        result = URI.createFileURI(new File(result.toString())
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.scheme()

      }
      else
      {
        String opaquePart = uri.opaquePart();
        int index = opaquePart.indexOf(":");
        if (index != -1 && "urn".equalsIgnoreCase(uri.scheme()))
        {
          parsedName = parseNameStatic(opaquePart.substring(0, index), '-');
          if (parsedName.size() > 0 && DOMAINS.contains(parsedName.get(parsedName.size() - 1)))
          {
            Collections.reverse(parsedName);
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.scheme()

      }
      else
      {
        String opaquePart = uri.opaquePart();
        int index = opaquePart.indexOf(":");
        if (index != -1 && "urn".equalsIgnoreCase(uri.scheme()))
        {
          parsedName = parseNameStatic(opaquePart.substring(0, index), '-');
          if (parsedName.size() > 0 && DOMAINS.contains(parsedName.get(parsedName.size() - 1)))
          {
            Collections.reverse(parsedName);
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.scheme()

  private static class FileUriResolver implements IFileUriResolver {
    @Override public void resolveAndUpdateUri(Import anImport) {
      String importUri = anImport.getImportURI();
      URI uri = URI.createURI(importUri);
      if (!isEmpty(uri.scheme()))
      {
        return; // already resolved.
      }
      File file = protoFile(importUri);
      if (!file.exists()) {
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.scheme()

      }
      else
      {
        String opaquePart = uri.opaquePart();
        int index = opaquePart.indexOf(":");
        if (index != -1 && "urn".equalsIgnoreCase(uri.scheme()))
        {
          parsedName = parseNameStatic(opaquePart.substring(0, index), '-');
          if (parsedName.size() > 0 && DOMAINS.contains(parsedName.get(parsedName.size() - 1)))
          {
            Collections.reverse(parsedName);
View Full Code Here

Examples of org.eclipse.jetty.client.api.Request.scheme()

        client.setConnectTimeout(connectTimeout);
        client.start();

        final CountDownLatch latch = new CountDownLatch(1);
        Request request = client.newRequest(host, port);
        request.scheme(scheme)
                .send(new Response.CompleteListener()
                {
                    @Override
                    public void onComplete(Result result)
                    {
View Full Code Here

Examples of org.eclipse.wst.common.uriresolver.internal.URI.scheme()

      // 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.jboss.arquillian.graphene.page.Location.scheme()

            throw new IllegalArgumentException(String.format("The page object '%s' that you are navigating to "
                + "using either Graphene.goTo(<page_object>) or @InitialPage is not annotated with @Location",
                pageObjectClass.getSimpleName()));
        }

        if (location.scheme() == null) {
            throw new IllegalArgumentException("Scheme for provided @Location can not be a null object.");
        }

        Class<?> schemeClass = null;
View Full Code Here

Examples of org.jboss.arquillian.graphene.page.Location.scheme()

            }
        } catch (IllegalArgumentException ex) {
        }

        if (schemeClass == null) {
            schemeClass = location.scheme();
        }

        injector.get().inject(locationStore.get());

        LocationDecider decider = resolveDecider(serviceLoader.get().all(LocationDecider.class), schemeClass);
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.