Examples of Rejected


Examples of org.apache.qpid.amqp_1_0.type.messaging.Rejected

    public Rejected construct(Object underlying)
    {
        if(underlying instanceof List)
        {
            List list = (List) underlying;
            Rejected obj = new Rejected();
            int position = 0;
            final int size = list.size();

            if(position < size)
            {
                Object val = list.get(position);
                position++;

                if(val != null)
                {

                    try
                    {
                        obj.setError( (org.apache.qpid.amqp_1_0.type.transport.Error) val );
                    }
                    catch(ClassCastException e)
                    {

                        // TODO Error
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.messaging.Rejected

    public Rejected construct(Object underlying)
    {
        if(underlying instanceof List)
        {
            List list = (List) underlying;
            Rejected obj = new Rejected();
            int position = 0;
            final int size = list.size();

            if(position < size)
            {
                Object val = list.get(position);
                position++;

                if(val != null)
                {

                    try
                    {
                        obj.setError( (org.apache.qpid.amqp_1_0.type.transport.Error) val );
                    }
                    catch(ClassCastException e)
                    {

                        // TODO Error
View Full Code Here

Examples of org.apache.qpid.proton.amqp.messaging.Rejected

      }
      catch (Exception e)
      {
         e.printStackTrace();
         Rejected rejected = new Rejected();
         ErrorCondition condition = new ErrorCondition();
         condition.setCondition(Symbol.valueOf("failed"));
         condition.setDescription(e.getMessage());
         rejected.setError(condition);
         delivery.disposition(rejected);
      }
   }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.messaging.Rejected

      }
      catch (Exception e)
      {
         e.printStackTrace();
         Rejected rejected = new Rejected();
         ErrorCondition condition = new ErrorCondition();
         condition.setCondition(Symbol.valueOf("failed"));
         condition.setDescription(e.getMessage());
         rejected.setError(condition);
         delivery.disposition(rejected);
      }
   }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.messaging.Rejected

      }
      catch (Exception e)
      {
         e.printStackTrace();
         Rejected rejected = new Rejected();
         ErrorCondition condition = new ErrorCondition();
         condition.setCondition(Symbol.valueOf("failed"));
         condition.setDescription(e.getMessage());
         rejected.setError(condition);
         delivery.disposition(rejected);
      }
   }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.messaging.Rejected

        {
            return Accepted.getInstance();
        }
        else if(BigInteger.valueOf(PN_REJECTED).equals(disposition))
        {
            return new Rejected();
        }
        else if(BigInteger.valueOf(PN_MODIFIED).equals(disposition))
        {
            return new Modified();
        }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.messaging.Rejected

                @Override
                public void onResponse(AmqpProtocolConverter converter, Response response) throws IOException {
                    if( !delivery.remotelySettled()  ) {
                        if( response.isException() ) {
                            ExceptionResponse er = (ExceptionResponse)response;
                            Rejected rejected = new Rejected();
                            ErrorCondition condition = new ErrorCondition();
                            condition.setCondition(Symbol.valueOf("failed"));
                            condition.setDescription(er.getException().getMessage());
                            rejected.setError(condition);
                            delivery.disposition(rejected);
                        }
                    }
                    receiver.flow(1);
                    delivery.settle();
View Full Code Here

Examples of org.apache.qpid.proton.amqp.messaging.Rejected

        {
            return Accepted.getInstance();
        }
        else if(BigInteger.valueOf(PN_REJECTED).equals(disposition))
        {
            return new Rejected();
        }
        else if(BigInteger.valueOf(PN_MODIFIED).equals(disposition))
        {
            return new Modified();
        }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.messaging.Rejected

                @Override
                public void onResponse(IAmqpProtocolConverter converter, Response response) throws IOException {
                    if (!delivery.remotelySettled()) {
                        if (response.isException()) {
                            ExceptionResponse er = (ExceptionResponse) response;
                            Rejected rejected = new Rejected();
                            ErrorCondition condition = new ErrorCondition();
                            condition.setCondition(Symbol.valueOf("failed"));
                            condition.setDescription(er.getException().getMessage());
                            rejected.setError(condition);
                            delivery.disposition(rejected);
                        }
                    }
                    receiver.flow(1);
                    delivery.settle();
View Full Code Here

Examples of org.apache.qpid.proton.amqp.messaging.Rejected

                @Override
                public void onResponse(IAmqpProtocolConverter converter, Response response) throws IOException {
                    if (!delivery.remotelySettled()) {
                        if (response.isException()) {
                            ExceptionResponse er = (ExceptionResponse) response;
                            Rejected rejected = new Rejected();
                            ErrorCondition condition = new ErrorCondition();
                            condition.setCondition(Symbol.valueOf("failed"));
                            condition.setDescription(er.getException().getMessage());
                            rejected.setError(condition);
                            delivery.disposition(rejected);
                        }
                    }
                    receiver.flow(1);
                    delivery.disposition(Accepted.getInstance());
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.