Examples of ProxyType


Examples of com.caucho.remote.annotation.ProxyType

      for (Annotation ann : annotated.getAnnotations()) {
        Class<?> annType = ann.annotationType();

        if (annType.isAnnotationPresent(ProxyType.class)) {
          ProxyType proxyType
          = (ProxyType) annType.getAnnotation(ProxyType.class);

          Class<?> factoryClass = proxyType.defaultFactory();
          ProtocolProxyFactory proxyFactory
          = (ProtocolProxyFactory) factoryClass.newInstance();

          proxyFactory.setProxyType(ann);
          proxyFactory.setAnnotated(annotated);
View Full Code Here

Examples of com.caucho.remote.annotation.ProxyType

    _webApp.addServletMapping(mapping);

    // event.veto();
  }
  else if (annType.isAnnotationPresent(ProxyType.class)) {
    ProxyType proxyType
      = (ProxyType) annType.getAnnotation(ProxyType.class);

    Class factoryClass = proxyType.defaultFactory();
    ProtocolProxyFactory proxyFactory
      = (ProtocolProxyFactory) factoryClass.newInstance();

    proxyFactory.setProxyType(ann);
    proxyFactory.setAnnotated(annotated);
View Full Code Here

Examples of com.googlecode.jmeter.plugins.webdriver.proxy.ProxyType

        assertThat(config.getProxyType(), is(ProxyType.SYSTEM));
    }

    @Test
    public void shouldAssignProxyType() {
        ProxyType type = ProxyType.MANUAL;
        config.setProxyType(type);

        assertThat(config.getProxyType(), is(type));
    }
View Full Code Here

Examples of mage.remote.Connection.ProxyType

        String userName = prefs.get("userName", "");
        String server = prefs.get("serverAddress", "");
        int port = Integer.parseInt(prefs.get("serverPort", ""));
        String proxyServer = prefs.get("proxyAddress", "");
        int proxyPort = Integer.parseInt(prefs.get("proxyPort", "0"));
        ProxyType proxyType = ProxyType.valueByText(prefs.get("proxyType", "None"));
        String proxyUsername = prefs.get("proxyUsername", "");
        String proxyPassword = prefs.get("proxyPassword", "");
        int avatarId = PreferencesDialog.getSelectedAvatar();
        boolean showAbilityPickerForced = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_SHOW_ABILITY_PICKER_FORCED, "true").equals("true");
        try {
View Full Code Here

Examples of mage.remote.Connection.ProxyType

            connection = new Connection();
            connection.setHost(this.txtServer.getText().trim());
            connection.setPort(Integer.valueOf(this.txtPort.getText().trim()));
            connection.setUsername(this.txtUserName.getText().trim());

            ProxyType configProxyType = Connection.ProxyType.valueByText(PreferencesDialog.getCachedValue(PreferencesDialog.KEY_PROXY_TYPE, "None"));

            if (configProxyType != null) {
                connection.setProxyType(configProxyType);
                if (!configProxyType.equals(ProxyType.NONE)) {
                    String host = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_PROXY_ADDRESS, "");
                    String port = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_PROXY_PORT, "");
                    if (!host.isEmpty() && !port.isEmpty()) {
                        connection.setProxyHost(host);
                        connection.setProxyPort(Integer.valueOf(port));
View Full Code Here

Examples of org.jivesoftware.smack.proxy.ProxyInfo.ProxyType

   
    ProxyInfo proxy;
    ConnectionConfiguration config;
   
    if (props.containsKey("proxy.type")){
      ProxyType type   = ProxyType.valueOf(props.getProperty("proxy.type"));
      String    host   = props.getProperty("proxy.host");
      int       port   = new Integer(props.getProperty("proxy.port")).intValue();
      String    user   = props.getProperty("proxy.user");
      String    passwd = props.getProperty("proxy.password");
      proxy  =  new ProxyInfo(type, host, port, user, passwd);
View Full Code Here

Examples of org.jivesoftware.smack.proxy.ProxyInfo.ProxyType

        // validation has already been done for the hostname field
        return FormValidation.ok();
      } else if (org.jivesoftware.smack.util.StringUtils.parseServer(jabberId) != null) {
      String pts = Util.fixEmptyAndTrim(proxyType);
          String host = org.jivesoftware.smack.util.StringUtils.parseServer(jabberId);
      ProxyType pt = ProxyType.NONE;
          try {
        if (pts != null) {
          pt = ProxyType.valueOf(pts);
        }
      } catch (IllegalArgumentException e) {
View Full Code Here

Examples of org.jivesoftware.smack.proxy.ProxyInfo.ProxyType

    String p = Util.fixEmptyAndTrim(proxyPort);
    String pts = Util.fixEmptyAndTrim(proxyType);
    if (host == null) {
      return FormValidation.ok();
    } else {
      ProxyType pt = ProxyType.NONE;
      try {
        if (pts != null) {
          pt = ProxyType.valueOf(pts);
        }
      } catch (IllegalArgumentException e) {
View Full Code Here

Examples of org.jivesoftware.smack.proxy.ProxyInfo.ProxyType

        String p = Util.fixEmptyAndTrim(port);
    String pts = Util.fixEmptyAndTrim(proxyType);
        if (host == null) {
            return FormValidation.ok();
        } else {
      ProxyType pt = ProxyType.NONE;
            try {
        if (pts != null) {
          pt = ProxyType.valueOf(pts);
        }
      } catch (IllegalArgumentException e) {
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.