Examples of TargetResolver


Examples of com.ericsson.ssa.sip.dns.TargetResolver

                // TR HH52078
                if (resp != null) {
                    while (resp.popDispatcher() != null) {
                    } // After this layer it shouldn't go anywhere

                    TargetResolver tr = TargetResolver.getInstance();
                    TargetTuple tt = tr.resolveResponse(resp);

                    if (tt != null) {
                        resp.setRemote(tt);
                        dispatch(resp);
                    }
View Full Code Here

Examples of com.ericsson.ssa.sip.dns.TargetResolver

    private void sendErrorResponse(SipServletResponseImpl resp) {

        while (resp.popDispatcher() != null) {
        }

        TargetResolver tr = TargetResolver.getInstance();
        TargetTuple tt = null;
        try {
            tt = tr.resolveResponse(resp);
        } catch (Exception e) {
            if (logger.isLoggable(Level.FINEST)) {
                logger.log(Level.FINEST,
                        "sip.network.grizzly.failed.resolution");
            }
View Full Code Here

Examples of com.ericsson.ssa.sip.dns.TargetResolver

                    (resp.getToImpl().getParameter(AddressImpl.TAG_PARAM) == null)) {
                resp.createTag(Header.TO);
            }

            try {
                TargetResolver tr = TargetResolver.getInstance();
                TargetTuple tt = tr.resolveResponse(resp);
                resp.setRemote(tt);
            } catch (Exception e) {
                e.printStackTrace();
                // Fallback if resolve failed, possibly because of Via missing or not parsable.
                resp.setRemote(req.getRemote());
View Full Code Here

Examples of com.sun.xml.wss.impl.policy.verifier.TargetResolver

            log.log(Level.SEVERE, LogStringsMessages.WSS_0307_NONCE_ENCTYPE_INVALID(), ex);
            throw new XWSSecurityException(ex);
        }

        // for Policy verfication
        TargetResolver targetResolver = new TargetResolverImpl(context);
        MessagePolicyVerifier mpv = new MessagePolicyVerifier(context, targetResolver);  
        /*
        try{
            System.out.println("Inferred Security Policy");
            mpv.printInferredSecurityPolicy(fpContext.getInferredSecurityPolicy());
View Full Code Here

Examples of org.apache.abdera.protocol.server.provider.TargetResolver

     
      SubjectResolver subjectResolver = context.getSubjectResolver();
      subject = (subjectResolver != null)?
        subjectResolver.resolve((Principal)getProperty(Property.PRINCIPAL)) : null;
     
      TargetResolver targetResolver = context.getTargetResolver();
      target = (targetResolver != null) ?
        targetResolver.resolve(this) : null;
  }
View Full Code Here

Examples of org.apache.axis2.util.TargetResolver

            // set ClientOptions to the current outgoing message
            outMsgCtx.setOptions(options);

      // do Target Resolution
      TargetResolver tr = cfgCtx.getAxisConfiguration().getTargetResolverChain();
            if (tr != null) {
                tr.resolveTarget(outMsgCtx);
            }

            // if the transport to use for sending is not specified, try to find it from the URL
      TransportOutDescription transportOut = options.getTransportOut();
      if (transportOut == null) {
View Full Code Here

Examples of org.apache.axis2.util.TargetResolver

            // set ClientOptions to the current outgoing message
            outMsgCtx.setOptions(options);

      // do Target Resolution
      TargetResolver tr = cfgCtx.getAxisConfiguration().getTargetResolverChain();
            if (tr != null) {
                tr.resolveTarget(outMsgCtx);
            }

            // if the transport to use for sending is not specified, try to find it from the URL
      TransportOutDescription transportOut = options.getTransportOut();
      if (transportOut == null) {
View Full Code Here

Examples of org.apache.axis2.util.TargetResolver

    // Mark the config context so that we can run sync 2-way interations over
    // RM, but at the same time switch it off for unreliable messages.
    configContext.setProperty(Constants.Configuration.USE_ASYNC_OPERATIONS, Boolean.TRUE);
    configContext.getAxisConfiguration().addTargetResolver(
        new TargetResolver() {
          public void resolveTarget(MessageContext messageContext) {
           
            //if Sandesha2 is not engaged we can set the property straight away
           
            boolean engaged = false;
View Full Code Here

Examples of org.apache.axis2.util.TargetResolver

      }

      mc.setOptions(options);

      // do Target Resolution
      TargetResolver tr = cc.getAxisConfiguration().getTargetResolverChain();
            if (tr != null) {
                tr.resolveTarget(mc);
            }

            // if the transport to use for sending is not specified, try to find
      // it
      // from the URL
View Full Code Here

Examples of org.apache.axis2.util.TargetResolver

    // RM, but at the same time switch it off for unreliable messages.
    // We do a similar trick with the code that does an early HTTP 202 for
    // messages that don't need their backchannel.
    configContext.setProperty(Constants.Configuration.USE_ASYNC_OPERATIONS, Boolean.TRUE);
    configContext.getAxisConfiguration().addTargetResolver(
        new TargetResolver() {
          public void resolveTarget(MessageContext messageContext) {
           
            //if Sandesha2 is not engaged we can set the property straight away
           
            boolean engaged = false;
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.