Examples of Renew


Examples of org.apache.cxf.ws.eventing.Renew

        GetStatusResponse response = client.getStatusOp(new GetStatus());
        String expirationBefore = response.getGrantedExpires().getValue();
        System.out.println("EXPIRES before renew: " + expirationBefore);
        Assert.assertTrue(expirationBefore.length() > 0);

        Renew renewRequest = new Renew();
        ExpirationType renewExp = new ExpirationType();
        renewExp.setValue(DurationAndDateUtil
                .convertToXMLString(DurationAndDateUtil.
                        parseDurationOrTimestamp("2056-10-21T14:54:46.826+02:00")))// 10 minutes
        renewRequest.setExpires(renewExp);
        client.renewOp(renewRequest);
        response = client.getStatusOp(new GetStatus());
        String expirationAfter = response.getGrantedExpires().getValue();
        System.out.println("EXPIRES after renew: " + expirationAfter);
View Full Code Here

Examples of org.apache.cxf.ws.eventing.Renew

        GetStatusResponse response = client.getStatusOp(new GetStatus());
        String expirationBefore = response.getGrantedExpires().getValue();
        System.out.println("EXPIRES before renew: " + expirationBefore);
        Assert.assertTrue(expirationBefore.length() > 0);

        Renew renewRequest = new Renew();
        ExpirationType renewExp = new ExpirationType();
        renewExp.setValue(DurationAndDateUtil
                .convertToXMLString(DurationAndDateUtil.parseDurationOrTimestamp("PT10M0S")))// 10 minutes
        renewRequest.setExpires(renewExp);
        client.renewOp(renewRequest);
        response = client.getStatusOp(new GetStatus());
        String expirationAfter = response.getGrantedExpires().getValue();
        System.out.println("EXPIRES after renew: " + expirationAfter);
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.jaxws.Renew

      AddressingProperties requestProps =
            buildFollowupProperties(response, EventingConstants.RENEW_ACTION, eventSourceURI.toString());
      setRequestProperties((BindingProvider)managerPort, requestProps);

      Date oldLeaseTime = response.getExpires();
      Renew renewRequest = new Renew();
      RenewResponse renewResponse = managerPort.renewOp(renewRequest);
      assertNotNull(renewResponse);
      assertNotNull(renewResponse.getExpires());
      AddressingProperties responseProps = getResponseProperties((BindingProvider)managerPort);
      assertEquals(responseProps.getAction().getURI().toString(), EventingConstants.RENEW_RESPONSE_ACTION);
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.jaxws.Renew

         AddressingProperties renewProps =
             buildFollowupProperties(response, EventingConstants.RENEW_ACTION, eventSourceURI.toString());
         setRequestProperties((BindingProvider)managerPort, requestProps);

         Renew renewRequest = new Renew();
         managerPort.renewOp(renewRequest)// this should fail

         fail("Subscription not removed");
      }
      catch (Exception e)
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.Renew

    public void resume() throws ResourceUnknownFault, ResumeFailedFault {
        subscription.resumeSubscription(new ResumeSubscription());
    }

    public void renew(String terminationTime) throws ResourceUnknownFault, UnacceptableTerminationTimeFault {
        Renew renew = new Renew();
        renew.setTerminationTime(terminationTime);
        subscription.renew(renew);
    }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.Renew

    public void resume() throws ResourceUnknownFault, ResumeFailedFault {
        subscription.resumeSubscription(new ResumeSubscription());
    }

    public void renew(String terminationTime) throws ResourceUnknownFault, UnacceptableTerminationTimeFault {
        Renew renew = new Renew();
        renew.setTerminationTime(terminationTime);
        subscription.renew(renew);
    }
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.