Search in sources :

Example 1 with RenewResponse

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;
}
Also used : XMLGregorianCalendar(javax.xml.datatype.XMLGregorianCalendar) RenewResponse(org.oasis_open.docs.wsn.b_2.RenewResponse) WebMethod(javax.jws.WebMethod) WebResult(javax.jws.WebResult)

Aggregations

WebMethod (javax.jws.WebMethod)1 WebResult (javax.jws.WebResult)1 XMLGregorianCalendar (javax.xml.datatype.XMLGregorianCalendar)1 RenewResponse (org.oasis_open.docs.wsn.b_2.RenewResponse)1