* @param req Request
* @param name Name of the lock
* @throws IOException If fails
*/
RtLock(final Request req, final String name) throws IOException {
final XmlResponse rsp = req.fetch()
.as(RestResponse.class)
.assertStatus(HttpURLConnection.HTTP_OK)
.as(XmlResponse.class);
this.lrequest = rsp.rel("/page/links/link[@rel='lock']/@href")
.method(Request.POST)
.body().formParam("name", name).back();
this.urequest = rsp.rel("/page/links/link[@rel='unlock']/@href")
.method(Request.GET)
.uri().queryParam("name", name).back();
}