Examples of Target


Examples of flex.messaging.services.http.proxy.Target

    //
    //--------------------------------------------------------------------------

    protected void setupContext(ProxyContext context, HTTPMessage message)
    {
        Target target = new Target();
        context.setTarget(target);

        context.setExternalProxySettings(externalProxy);
        context.setProxyCredentials(proxyCredentials);
        context.setConnectionManager(connectionManager);
        context.setAllowLaxSSL(allowLaxSSL);
        context.setContentChunked(contentChunked);
        context.setRecordHeaders(message.getRecordHeaders());
        context.setCookieLimit(cookieLimit);
        context.setHttpRequest(FlexContext.getHttpRequest() != null);

        //TODO: QUESTION: Pete, Send HTTPHeaders as real headers

        // INPUT
        String url = message.getUrl();
        context.setUrl(url);

        Map httpHeaders = message.getHttpHeaders();
        context.setHeaders(httpHeaders);

        String method = message.getMethod();
        context.setMethod(method);

        String contentType = message.getContentType();
        context.setContentType(contentType);

        Object body = message.getBody();
        context.setBody(body);

        target.setRemoteUsername(message.getRemoteUsername());
        target.setRemotePassword(message.getRemotePassword());

        HTTPProxyDestination destination = (HTTPProxyDestination)getDestination();
        target.setUseCustomAuthentication(destination.isUseCustomAuthentication());

        if (destination.getProtocolFactory() != null)
        {
            ProtocolFactory protocolFactory = destination.getProtocolFactory();
            context.setProtocol(protocolFactory.getProtocol());
View Full Code Here

Examples of jaid.ais.data.Target

            e.printStackTrace();
        }
    }

    public Target getTargetByMMSI(String mmsi) {
        Target t = null;
        for (DataSource s : sources) {
            t = s.getTargetByMMSI(mmsi);
            if (t != null) {
                return t;
            }
View Full Code Here

Examples of java.lang.annotation.Target

        assertNotNull(meta);

        // Try again (the annotation will be cached). Use an annotation
        // that will not be present.

        Target t = ct.getAnnotation(Target.class);

        assertNull(t);

        verify();
    }
View Full Code Here

Examples of javax.enterprise.deploy.spi.Target

      Target[] targets = new Target[hosts.length];

      for (int i = 0; i < hosts.length; i++) {
        HostQuery host = hosts[i];

        Target target = new TargetImpl(host.getName(), null);

        targets[i] = target;
      }

      return targets;
View Full Code Here

Examples of javax.enterprise.deploy.spi.Target

            throw new DeploymentException("This command cannot be run unless connecting to a running server.  Specify --url if server is not running on the default port on localhost.");
        }
        Target[] list = connection.getDeploymentManager().getTargets();
        out.println("Available Targets:");
        for(int i = 0; i < list.length; i++) {
            Target target = list[i];
            out.println("  "+target.getName());
        }
    }
View Full Code Here

Examples of javax.enterprise.deploy.spi.Target

        for (int i = 0; i < tlist.length; i++) {
            if(found.contains(targetNames.get(i))) {
                throw new DeploymentException("Target list should not contain duplicates ("+targetNames.get(i)+")");
            }
            for (int j = 0; j < all.length; j++) {
                Target server = all[j];
                if(server.getName().equals(targetNames.get(i))) {
                    tlist[i] = server;
                    found.add(server.getName());
                    break;
                }
            }
            if(tlist[i] == null) {
                throw new DeploymentException("No target named '"+targetNames.get(i)+"' was found");
View Full Code Here

Examples of jodd.madvoc.injector.Target

  /**
   * Initializes action wrapper.
   */
  protected void initializeWrapper(T wrapper) {
    contextInjectorComponent.injectContext(new Target(wrapper));

    wrapper.init();
  }
View Full Code Here

Examples of mage.target.Target

    return true;
  }

  @Override
  public String getText(Ability source) {
    Target target = source.getTargets().get(0);
    if (target.getNumberOfTargets() > 1)
      return "tap " + target.getNumberOfTargets() + " target " + source.getTargets().get(0).getTargetName() + "s";
    else
      return "tap target " + source.getTargets().get(0).getTargetName();
  }
View Full Code Here

Examples of net.rim.tumbler.file.Library.Target

        if (valueAttr != null) {
          Platform platform = new Platform(valueAttr.getNodeValue());
          NodeList childNodes = platformNode.getChildNodes();

          for (int i = 0; i < childNodes.getLength(); i++) {
            Target target = processTargetNode(childNodes.item(i));

            if (target != null) {
              platform.addTarget(target);
            }
          }
View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.Target

    if (ENABLE_UPDATABLE_CODE.equals(type))
      applyEnableUpdatableCode(configuration);
  }

  private void applyEnableUpdatableCode(Configuration configuration) {
    Target target = configuration.getTarget();
    applyEnableUpdatableCode(target);
    for (Target t : configuration.getTargets().getTargets())
      applyEnableUpdatableCode(t);
  }
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.