Package com.jcabi.http.response

Examples of com.jcabi.http.response.XmlResponse.rel()


            .as(RestResponse.class)
            .assertStatus(HttpURLConnection.HTTP_OK)
            .as(XmlResponse.class);
        return new RtCounter(
            name,
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='set']/@href",
                    name
                )
View Full Code Here


                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='set']/@href",
                    name
                )
            ),
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='increment']/@href",
                    name
                )
View Full Code Here

    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();
View Full Code Here

            .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();
    }

    @Override
View Full Code Here

        final XmlResponse rsp = this.request.fetch()
            .as(RestResponse.class)
            .assertStatus(HttpURLConnection.HTTP_OK)
            .as(XmlResponse.class);
        return new RtCounter(
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='set']/@href",
                    name
                )
View Full Code Here

                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='set']/@href",
                    name
                )
            ),
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='increment']/@href",
                    name
                )
View Full Code Here

            .as(RestResponse.class)
            .assertStatus(HttpURLConnection.HTTP_OK)
            .as(XmlResponse.class);
        return new RtCounter(
            name,
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='set']/@href",
                    name
                )
View Full Code Here

                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='set']/@href",
                    name
                )
            ),
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='increment']/@href",
                    name
                )
View Full Code Here

        final XmlResponse rsp = this.request.fetch()
            .as(RestResponse.class)
            .assertStatus(HttpURLConnection.HTTP_OK)
            .as(XmlResponse.class);
        return new RtCounter(
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='set']/@href",
                    name
                )
View Full Code Here

                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='set']/@href",
                    name
                )
            ),
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='increment']/@href",
                    name
                )
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.