Package org.apache.qpid.proton.amqp.messaging

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


      }
      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

      }
      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

        {
            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

                @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

        {
            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

                @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

                @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

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

    public Rejected newInstance(Object described)
    {
        List l = (List) described;

        Rejected o = new Rejected();

        switch(1 - l.size())
        {
            case 0:
                o.setError( (ErrorCondition) l.get( 0 ) );
        }


        return o;
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.proton.amqp.messaging.Rejected

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.