Examples of XmlResponse


Examples of com.jcabi.http.response.XmlResponse

            .assertStatus(HttpURLConnection.HTTP_SEE_OTHER);
    }

    @Override
    public Counter get(final String name) throws IOException {
        final XmlResponse rsp = this.request.fetch()
            .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
                )
            ),
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='increment']/@href",
                    name
                )
View Full Code Here

Examples of com.jcabi.http.response.XmlResponse

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

Examples of com.jcabi.http.response.XmlResponse

            .assertStatus(HttpURLConnection.HTTP_SEE_OTHER);
    }

    @Override
    public Counter get(final String name) throws IOException {
        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
                )
            ),
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='increment']/@href",
                    name
                )
View Full Code Here

Examples of com.jcabi.http.response.XmlResponse

        );
    }

    @Override
    public Counter get(final String name) throws IOException {
        final XmlResponse rsp = this.request.fetch()
            .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
                )
            ),
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='increment']/@href",
                    name
                )
View Full Code Here

Examples of com.jcabi.http.response.XmlResponse

            .assertStatus(HttpURLConnection.HTTP_SEE_OTHER);
    }

    @Override
    public Counter get(final String name) throws IOException {
        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
                )
            ),
            rsp.rel(
                String.format(
                    // @checkstyle LineLength (1 line)
                    "/page/counters/counter[name='%s']/links/link[@rel='increment']/@href",
                    name
                )
View Full Code Here

Examples of com.jcabi.http.response.XmlResponse

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

Examples of org.geotools.data.complex.xml.XmlResponse

        WSResponse response = wsProtocol.issueGetFeature(callQuery);
        Document doc = getXmlResponse(response);
       
        List<Integer> validFeatureIndex = determineValidFeatures(postFilter, doc, query
                .getMaxFeatures());
        return new XmlResponse(doc, validFeatureIndex);
    }
View Full Code Here

Examples of org.geotools.data.complex.xml.XmlResponse

        WSResponse response = wsProtocol.issueGetFeature(query);
        Document doc = getXmlResponse(response);
       
        List<Integer> validFeatureIndex = determineValidFeatures(xpath, value, doc, query
                .getMaxFeatures());
        return new XmlResponse(doc, validFeatureIndex);
    }
View Full Code Here

Examples of org.geotools.data.complex.xml.XmlResponse

            callQuery.setFilter(supportedFilter);
           
            Document doc = getXmlResponse();            
            List<Integer> validFeatureIndex = determineValidFeatures(postFilter, doc, query
                    .getMaxFeatures());
            return new XmlResponse(doc, validFeatureIndex);
        }
View Full Code Here

Examples of org.geotools.data.complex.xml.XmlResponse

        public XmlResponse getXmlReader(Query query, String xpath, String value) throws IOException {
            Document doc = getXmlResponse();
           
            List<Integer> validFeatureIndex = determineValidFeatures(xpath, value, doc, query
                    .getMaxFeatures());
            return new XmlResponse(doc, validFeatureIndex);
        }
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.