Examples of toURL()


Examples of name.pehl.karaka.client.rest.UrlBuilder.toUrl()

    @Override
    protected Resource resourceFor(TickActivityAction action)
    {
        UrlBuilder urlBuilder = new UrlBuilder().module("rest").path("activities", action.getActivity().getId(), "tick");
        return new Resource(urlBuilder.toUrl());
    }


    @Override
    protected Method methodFor(TickActivityAction action, Resource resource)
View Full Code Here

Examples of net.sf.redmine_mylyn.api.query.Query.toUrl()

    if(selectedQuery.getProjectId()>=1) {
      query.addFilter(QueryField.PROJECT, CompareOperator.IS, ""+selectedQuery.getProjectId()); //$NON-NLS-1$
    }
   
    try {
      repositoryQuery.setUrl(query.toUrl(getTaskRepository().getCharacterEncoding()));
    } catch (RedmineApiErrorException e) {
      IStatus status = RedmineUiPlugin.toStatus(e, Messages.ERRMSG_QUERY_CREATION_FAILED);
      StatusHandler.log(status);
      setErrorMessage(status.getMessage());
    }
View Full Code Here

Examples of net.unto.twitter.methods.Request.toUrl()

  public void testDirectMessagesRequestUrl() {
    Api api = Api.builder().username("test").password("test").build();
    DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeZone.UTC);
    Request request = api.directMessages().page(1).sinceId(12345).since(epoch).build();
    assertEquals("http://twitter.com:80/direct_messages.json", request.toString());
    assertHasParameter(request.toUrl(), "page", "1");
    assertHasParameter(request.toUrl(), "since_id", "12345");
    assertHasParameter(request.toUrl(), "since",
        "Thu Jan 01 00:00:00 +0000 1970");
  }
View Full Code Here

Examples of org.apache.abdera.i18n.iri.IRI.toURL()

        IRI logo = feed.getLogo();
        if (logo == null) {
            return null;
        }
        try {
            logoStr = logo.toURL().toString();
        } catch (MalformedURLException e) {
            throw new ScriptException(e);
        } catch (URISyntaxException e) {
            throw new ScriptException(e);
        }
View Full Code Here

Examples of org.apache.aries.util.filesystem.IFile.toURL()

    protected URL findResource(String resName) {
      for(IDirectory id : classpath) {
        IFile f = id.getFile(resName);
        if(f != null)
          try {
            return f.toURL();
          } catch (MalformedURLException e) {
            logger.error("Error getting URL for file " + f, e);
          }
      }
      return null;
View Full Code Here

Examples of org.apache.jena.iri.IRI.toURL()

        boolean includeWarnings = false;
        if (iri.hasViolation(includeWarnings)) {
            logger.warning("IRI has syntax violation: " + iriStr);
        }

        return iri.toURL();
    }
}
View Full Code Here

Examples of org.apache.pluto.driver.url.PortalURL.toURL()

        PortalURL portalUrl =  portalEnv.createPortalURL();
        String portletWindowID = portletWindowBean.getPortletWindow().getId().getStringId();
        portalUrl.setPortletMode(portletWindowID, new PortletMode(name));
        // URL should be like this (taken from Pluto RI 286 portal : http://localhost:8080/pluto/portal//Test%20Page/__pm0x3testsuite0x2TestPortlet1!764587357%7C0_edit? )
        return portalUrl.toURL(false);
    }

}
View Full Code Here

Examples of org.apache.tapestry.ioc.Resource.toURL()

        byte[] downloaded = readContent(url);

        Resource classpathResource = new ClasspathResource(
                "org/apache/tapestry/integration/app1/pages/tapestry-button.png");

        byte[] actual = readContent(classpathResource.toURL());

        assertEquals(downloaded, actual);
    }

    @Test
View Full Code Here

Examples of org.apache.tapestry.ioc.internal.util.ClasspathResource.toURL()

        byte[] downloaded = readContent(url);

        Resource classpathResource = new ClasspathResource(
                "org/apache/tapestry/integration/app1/pages/tapestry-button.png");

        byte[] actual = readContent(classpathResource.toURL());

        assertEquals(downloaded, actual);
    }

    @Test
View Full Code Here

Examples of org.apache.tapestry5.ioc.Resource.toURL()

        byte[] downloaded = readContent(url);

        Resource classpathResource = new ClasspathResource(
                "org/apache/tapestry5/integration/app1/pages/nested/tapestry-button.png");

        byte[] actual = readContent(classpathResource.toURL());

        assertEquals(downloaded, actual);
    }

    /**
 
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.