Package org.jitterbit.util.http

Examples of org.jitterbit.util.http.HttpVerb


        keyValues.put(FileLocation.PROPERTY_ENCRYPTION, "0");
        keyValues.put(FtpLocation.PROPERTY_PORT, "-1");
        keyValues.put(FtpLocation.PROPERTY_PASSIVE_MODE, "0");

        // This can not be null so set the default values.
        HttpVerb verb = isTarget ? HttpLocation.getDefaultVerb(SourceTarget.Target) :
            HttpLocation.getDefaultVerb(SourceTarget.Source);
        keyValues.putInt(HttpLocation.PROPERTY_HTTP_VERB, verb.getId());
        // Add the properties from the base class.
        keyValues.putAll(super.getPropertiesForDeploy());
        return keyValues;
  }
View Full Code Here


    @Test
    public void ensureAddingAndRemovingSingleOperationWorks() {
        TriggeredOperations ops = new TriggeredOperations();
        assertTrue(ops.isEmpty());
        Operation op = new Operation("Op");
        HttpVerb verb = HttpVerb.POST;
        OperationRunMode mode = OperationRunMode.SYNCHRONOUS;
        boolean responseGenerator = true;
        addAndRemoveOperation(ops, op, verb, mode, responseGenerator);
        verb = HttpVerb.PUT;
        mode = OperationRunMode.ASYNCHRONOUS;
View Full Code Here

        row.addAllWithSpace(10, Strings.get("Location.Http.Label.Verb"), options);
        return InvisiblePanel.newPanel(row);
    }
   
    private static HttpVerb getVerb(HttpLocation loc, SourceTarget st) {
        HttpVerb verb = loc.getHttpVerb();
        // An HTTP source/target may have been created/modified in a version that supports more
        // HTTP verbs than the current version. If that happens we should really give a warning,
        // but for now we just fall back to the default verb. We cannot keep the unsupported
        // verb because then this selector would end up in an invalid state (nothing selected),
        // which would prevent the user from saving.
View Full Code Here

        public Map<HttpVerb, Set<TriggeredOperation>> load() {
            Map<HttpVerb, Set<TriggeredOperation>> operations = Maps.newHashMap();
            for (Persistor verbPersistor : root.getChildren(VERB)) {
                try {
                    String name = verbPersistor.getString(VERB_NAME);
                    HttpVerb verb = name != null ? HttpVerb.valueOf(name) : null;
                    for (Persistor opPersistor : verbPersistor.getChildren(OPERATION)) {
                        loadOperation(operations, verb, opPersistor);
                    }
                } catch (Exception ex) {
                    // TODO: Collect errors like these and present to the user after the project has
View Full Code Here

TOP

Related Classes of org.jitterbit.util.http.HttpVerb

Copyright © 2018 www.massapicom. 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.