Examples of submit()


Examples of org.jsoup.nodes.FormElement.submit()

     */
    @Test
    public void postHtmlFile() throws IOException {
        Document index = Jsoup.connect("http://direct.infohound.net/tidy/").get();
        FormElement form = index.select("[name=tidy]").forms().get(0);
        Connection post = form.submit();

        File uploadFile = ParseTest.getFile("/htmltests/google-ipod.html");
        FileInputStream stream = new FileInputStream(uploadFile);

        // todo: need to add a better way to get an existing data field
View Full Code Here

Examples of org.ocpsoft.rewrite.bind.Evaluation.submit()

                */
               Object convertedValue = ValueHolderUtil.convert(event, context, parameter.getConverter(), value);
               if (ValueHolderUtil.validates(event, context, parameter.getValidator(), convertedValue))
               {
                  Evaluation evaluation = (Evaluation) binding;
                  evaluation.submit(event, context, value);
                  evaluation.submitConverted(event, context, convertedValue);
               }
               else
                  return false;
            }
View Full Code Here

Examples of org.ocpsoft.rewrite.param.ParameterValueStore.submit()

            if (pattern.parse(queryString == null ? "" : queryString).submit(event, context))
            {
               ParameterValueStore values = (ParameterValueStore) context.get(ParameterValueStore.class);
               for (Entry<Parameter<?>, String> entry : pattern.parse(query).getParameters(context).entrySet()) {
                  values.submit(event, context, store.get(entry.getKey().getName()), entry.getValue());
               }
               return true;
            }
            return false;
         }
View Full Code Here

Examples of org.ocpsoft.rewrite.param.ParameterizedPatternResult.submit()

                     for (String value : parameterValues) {

                        ParameterizedPatternResult parseResult = pattern.parse(value);
                        if (parseResult.matches())
                        {
                           return parseResult.submit(event, context);
                        }
                     }
                  }
               }
            }
View Full Code Here

Examples of org.openide.util.RequestProcessor.submit()

                        for (CoffeeScriptDataObject dataObject : data) {
                            CoffeeScriptAutocompileContext.get().enableAutocompile(dataObject.getPrimaryFile());
                        }
                        RequestProcessor processor = RequestProcessor.getDefault();
                        final Future[] futureHolder = new Future[1];
                        futureHolder[0] = processor.submit(new CompilerTask(data, CoffeeScriptSettings.get().isBare()) {

                            public void run() {
                                try {
                                    compile();
                                } catch (Exception e) {
View Full Code Here

Examples of org.openqa.selenium.WebElement.submit()

    public void login(String username, String password) {
        final WebElement loginForm = getLoginForm();
        loginForm.findElement(By.id("usernameField")).sendKeys(username);
        loginForm.findElement(By.id("passwordField")).sendKeys(password);
        loginForm.submit();
    }

    public void openIdLogin(String openIdUrl) {
        final WebElement openIdLogin = getOpenIdLoginForm();
        openIdLogin.findElement(By.id("openid_identifier")).sendKeys(openIdUrl);
View Full Code Here

Examples of org.richfaces.resource.optimizer.task.ResourceTaskFactoryImpl.submit()

            CompletionService<Object> completionService = new CountingExecutorCompletionService<Object>(executorService);
            taskFactory.setCompletionService(completionService);
            taskFactory.setSkins(Iterables.toArray(Constants.COMMA_SPLITTER.split(skins), String.class));
            taskFactory.setLog(log);
            taskFactory.setFilter(createResourcesFilter());
            taskFactory.submit(foundResources);

            log.debug(completionService.toString());

            Future<Object> future = null;
            while (true) {
View Full Code Here

Examples of org.rstudio.core.client.VirtualConsole.submit()

         text = VirtualConsole.consolify(text);
         if (isOutput)
         {
            VirtualConsole console = new VirtualConsole();
            console.submit(text);
            String consoleSnapshot = console.toString();

            // We use ensureNewLine to make sure that even if output
            // doesn't end with \n, a prompt will appear on its own line.
            // However, if we call ensureNewLine indiscriminantly (i.e.
View Full Code Here

Examples of org.smpp.Session.submit()

                boolean submitted = false;
                SubmitSMResp response = null;
                while (!submitted) {
                    Session SMSSession = (Session) sessionPool.borrowObject();
                    try {
                        response = SMSSession.submit(request);
                        submitted = true;
                        sessionPool.returnObject(SMSSession);
                    } catch (Exception e) {
                        LOGGER.warn("message-submit-failure-retrying", e.getMessage());
                        sessionPool.invalidateObject(SMSSession);
View Full Code Here

Examples of org.springframework.boot.actuate.metrics.writer.DefaultGaugeService.submit()

        SyncTaskExecutorConfiguration.class,
        MetricRepositoryAutoConfiguration.class);
    DefaultGaugeService gaugeService = context.getBean(DefaultGaugeService.class);
    assertNotNull(gaugeService);
    assertNotNull(context.getBean(DefaultCounterService.class));
    gaugeService.submit("foo", 2.7);
    assertEquals(2.7, context.getBean(MetricReader.class).findOne("gauge.foo")
        .getValue());
    context.close();
  }
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.