Package org.gocha.inetools.http

Examples of org.gocha.inetools.http.BasicHttpResponse$Variant


    Variant result = getVariantProperty(name);
    return (result != null) ? result.getInt() : -1;
  }

  public boolean setIntegerProperty(String name, int value) {
    return setVariantProperty(name, new Variant(value));
  }
View Full Code Here


  public boolean setIntegerProperty(String name, int value) {
    return setVariantProperty(name, new Variant(value));
  }

  public boolean getBooleanProperty(String name) {
    Variant result = getVariantProperty(name);
    return (result != null) ? result.getBoolean() : false;
  }
View Full Code Here

    Variant result = getVariantProperty(name);
    return (result != null) ? result.getBoolean() : false;
  }

  public boolean setBooleanProperty(String name, boolean value) {
    return setVariantProperty(name, new Variant(value));
  }
View Full Code Here

  public boolean setBooleanProperty(String name, boolean value) {
    return setVariantProperty(name, new Variant(value));
  }

  public String getStringProperty(String name) {
    Variant result = getVariantProperty(name);
    return (result != null) ? result.getString() : "";
  }
View Full Code Here

    Variant result = getVariantProperty(name);
    return (result != null) ? result.getString() : "";
  }

  public boolean setStringProperty(String name, String value) {
    return setVariantProperty(name, new Variant(value));
  }
View Full Code Here

  public boolean setStringProperty(String name, String value) {
    return setVariantProperty(name, new Variant(value));
  }

  public float getFloatProperty(String name) {
    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? result.getFloat() : 0.0f;
  }
View Full Code Here

    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? result.getFloat() : 0.0f;
  }

  public boolean setFloatProperty(String name, float value) {
    return oleAutomation.setProperty(getDispID(name), new Variant(value));
  }
View Full Code Here

  public boolean setFloatProperty(String name, float value) {
    return oleAutomation.setProperty(getDispID(name), new Variant(value));
  }

  public OleAutomation getAutomationProperty(String name) {
    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? result.getAutomation() : null;
  }
View Full Code Here

    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? result.getAutomation() : null;
  }

  public OleObject getObjectProperty(String name) {
    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? new OleObject(result.getAutomation(), false)
        : null;
  }
View Full Code Here

    // ReadyStateChange event
    oleControlSite.addEventListener(DISPID_ONREADYSTATECHANGE,
        new OleListener() {
          public void handleEvent(OleEvent event) {
            Variant state = event.arguments[0];
            if (flashListener != null)
              flashListener.onReadyStateChange(state.getInt());
          }
        });

    // OnProgress event
    oleControlSite.addEventListener(DISPID_ONPROGRESS, new OleListener() {
      public void handleEvent(OleEvent event) {
        Variant percentDone = event.arguments[0];
        if (percentDone != null) {
          if (flashListener != null)
            flashListener.onProgress(percentDone.getInt());
        }
      }
    });

    // FSCommand event
    oleControlSite.addEventListener(DISPID_FSCOMMAND, new OleListener() {
      public void handleEvent(OleEvent event) {
        Variant command = event.arguments[0];
        Variant args = event.arguments[1];
        if (command != null && args != null) {
          if (flashListener != null)
            flashListener.onFSCommand(command.getString(), args
                .getString());
        }
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.gocha.inetools.http.BasicHttpResponse$Variant

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.