Examples of toRequest()


Examples of com.day.cq.wcm.api.WCMMode.toRequest()

    @Override
    public int doStartTag() throws JspException {
        final WCMMode toSet = WCMMode.valueOf(mode);
        final ServletRequest request = pageContext.getRequest();
        this.oldMode = WCMMode.fromRequest(request);
        toSet.toRequest(request);
        return EVAL_BODY_INCLUDE;
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

Examples of com.day.cq.wcm.api.WCMMode.toRequest()

      wcmIncludeTag.setResourceType(resourceType);
      return wcmIncludeTag.doEndTag();
    } finally {
      if (wcmDisabled) {
        wcmMode.toRequest(request);
      }
    }
  }

  private ComponentConfiguration readComponentConfiguration(SlingHttpServletRequest request) {
View Full Code Here

Examples of com.day.cq.wcm.api.WCMMode.toRequest()

      wcmIncludeTag.setResourceType(resourceType);
      return wcmIncludeTag.doEndTag();
    } finally {
      if (wcmDisabled) {
        wcmMode.toRequest(request);
      }
    }
  }

  private ComponentConfiguration readComponentConfiguration(SlingHttpServletRequest request) {
View Full Code Here

Examples of org.graylog2.restclient.models.accounts.LdapSettings.toRequest()

            newRequest.ldapUri = "ldap:///";
            newRequest.enabled = true;
            newRequest.defaultGroup = "";
            ldapSettingsForm = settingsForm.fill(newRequest);
        } else {
            ldapSettingsForm = settingsForm.fill(ldapSettings.toRequest());
        }

        return ok(views.html.system.ldap.index.render(currentUser(), breadcrumbs(), ldapSettingsForm));
    }
View Full Code Here

Examples of org.jboss.as.cli.batch.Batch.toRequest()

        if(currentBatch.isEmpty()) {
            batchManager.discardActiveBatch();
            throw new CommandFormatException("The batch is empty.");
        }

        final ModelNode composite = batch.toRequest();
        ModelNode result;
        try {
            result = ctx.getModelControllerClient().execute(composite);
        } catch (Exception e) {
            throw new CommandFormatException("Failed to execute batch: " + e.getLocalizedMessage());
View Full Code Here

Examples of org.jboss.as.cli.batch.Batch.toRequest()

                    batch.add(ctx.toBatchedCommand(cmd));
                } catch (CommandFormatException e) {
                    throw new IllegalArgumentException(String.format("Command '%s' is invalid. %s", cmd, e.getLocalizedMessage()), e);
                }
            }
            final ModelNode result = ctx.getModelControllerClient().execute(batch.toRequest());
            if (!ServerOperations.isSuccessfulOutcome(result)) {
                throw new IllegalArgumentException(ServerOperations.getFailureDescriptionAsString(result));
            }
        }
    }
View Full Code Here

Examples of org.jboss.as.cli.batch.Batch.toRequest()

            ctx.getBatchManager().activateNewBatch();
            Batch b = ctx.getBatchManager().getActiveBatch();
            b.add(ctx.toBatchedCommand("/socket-binding-group=standard-sockets/socket-binding=modcluster:add(multicast-port=23364, multicast-address=224.0.1.105)"));
            b.add(ctx.toBatchedCommand("/subsystem=modcluster:add"));
            b.add(ctx.toBatchedCommand("/subsystem=modcluster/mod-cluster-config=configuration:add(connector=http,advertise-socket=modcluster)"));
            request = b.toRequest();
            b.clear();
            ctx.getBatchManager().discardActiveBatch();

            response = controllerClient.execute(request);
            outcome = response.get("outcome").asString();
View Full Code Here

Examples of org.jboss.as.cli.batch.Batch.toRequest()

                throw new CommandLineException("catch block is empty.");
            }
        }

        if(tryBlock.isInTry()) {
            tryBlock.setTryRequest(batch.toRequest());
        } else {
            tryBlock.setCatchRequest(batch.toRequest());
        }
        tryBlock.setInFinally();
        batchManager.discardActiveBatch();
View Full Code Here

Examples of org.jboss.as.cli.batch.Batch.toRequest()

        }

        if(tryBlock.isInTry()) {
            tryBlock.setTryRequest(batch.toRequest());
        } else {
            tryBlock.setCatchRequest(batch.toRequest());
        }
        tryBlock.setInFinally();
        batchManager.discardActiveBatch();
        batchManager.activateNewBatch();
    }
View Full Code Here

Examples of org.jboss.as.cli.batch.Batch.toRequest()

        final Batch tryBatch = batchManager.getActiveBatch();
        if(tryBatch.size() == 0) {
            throw new CommandLineException("try block is empty.");
        }
        tryBlock.setTryRequest(tryBatch.toRequest());
        tryBlock.setInCatch();
        batchManager.discardActiveBatch();
        batchManager.activateNewBatch();
    }
}
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.