Package org.exquery.http

Examples of org.exquery.http.HttpStatus


    protected void processHttpResponse(final Element httpResponse, final Map<SerializationProperty, String> serializationProperties, final HttpResponse response) throws RestXqServiceException {
       
        //get the status code (if present)
        final String strStatus = httpResponse.getAttribute(STATUS_ATTR_NAME);
        HttpStatus httpStatus = null;
        if(strStatus != null && !strStatus.isEmpty()) {
            final int status = Integer.parseInt(strStatus);
            try {
                httpStatus = HttpStatus.fromStatus(status);
            } catch(final IllegalArgumentException iae) {
View Full Code Here

TOP

Related Classes of org.exquery.http.HttpStatus

Copyright © 2018 www.massapicom. 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.