Package com.subgraph.vega.api.model.macros

Examples of com.subgraph.vega.api.model.macros.IHttpMacroItem


        boolean hasSelection = !event.getSelection().isEmpty();
        moveUpButton.setEnabled(hasSelection);
        moveDownButton.setEnabled(hasSelection);
        removeButton.setEnabled(hasSelection);
        if (hasSelection == true) {
          final IHttpMacroItem macroItem = (IHttpMacroItem)((IStructuredSelection) event.getSelection()).getFirstElement();
          setMacroItemSelected(macroItem);
        } else {
          setMacroItemSelected(null);
        }
      }
View Full Code Here


  @Override
  public void swapMacroItems(int idx1, int idx2) {
    activate(ActivationPurpose.READ);
    if (idx1 < macroItemList.size() && idx2 < macroItemList.size() && idx1 != idx2) {
      final IHttpMacroItem tmp = macroItemList.set(idx1, macroItemList.get(idx2));
      macroItemList.set(idx2, tmp);
    }
  }
View Full Code Here

  @Override
  public IHttpRequestTask sendNextRequest(HttpContext context) throws URISyntaxException, UnsupportedEncodingException {
    if (!macroItemIterator.hasNext()) {
      return null;
    }
    IHttpMacroItem macroItem = macroItemIterator.next();
    final HttpRequestBuilder builder = new HttpRequestBuilder();
    macroItem.setRequestBuilder(builder,  macroContext);
    // hack: remove content headesr
    builder.removeHeaders(HTTP.CONTENT_LEN);
    builder.removeHeaders(HTTP.CONTENT_TYPE);
    HttpUriRequest request = builder.buildRequest(false);
    return requestEngine.sendRequest(request, context);
View Full Code Here

  @Override
  public IHttpRequestTask sendNextRequest() throws URISyntaxException, UnsupportedEncodingException {
    if (!macroItemIterator.hasNext()) {
      return null;
    }
    IHttpMacroItem macroItem = macroItemIterator.next();
    final HttpRequestBuilder builder = new HttpRequestBuilder();
    macroItem.setRequestBuilder(builder,  macroContext);
    // hack: remove content headesr
    builder.removeHeaders(HTTP.CONTENT_LEN);
    builder.removeHeaders(HTTP.CONTENT_TYPE);
    HttpUriRequest request = builder.buildRequest(false);
    return requestEngine.sendRequest(request);
View Full Code Here

TOP

Related Classes of com.subgraph.vega.api.model.macros.IHttpMacroItem

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.