use of org.oasis_open.docs.wsn.b_2.RenewResponse in project cxf by apache.
the class AbstractSubscription method renew.
/**
* @param renewRequest
* @return returns org.oasis_open.docs.wsn.b_1.RenewResponse
* @throws UnacceptableTerminationTimeFault
* @throws ResourceUnknownFault
*/
@WebMethod(operationName = "Renew")
@WebResult(name = "RenewResponse", targetNamespace = "http://docs.oasis-open.org/wsn/b-2", partName = "RenewResponse")
public RenewResponse renew(@WebParam(name = "Renew", targetNamespace = "http://docs.oasis-open.org/wsn/b-2", partName = "RenewRequest") Renew renewRequest) throws ResourceUnknownFault, UnacceptableTerminationTimeFault {
XMLGregorianCalendar time = validateTerminationTime(renewRequest.getTerminationTime());
this.setTerminationTime(time);
renew(time);
RenewResponse response = new RenewResponse();
response.setTerminationTime(time);
response.setCurrentTime(getCurrentTime());
return response;
}
Aggregations