Package org.locationtech.udig.catalog.wmsc.server

Examples of org.locationtech.udig.catalog.wmsc.server.MockHttpResponse


        && (request.getProperties().get(GetFeatureInfoRequest.QUERY_Y).equals("200"))) {
        String success = "SUCCESS";
       
        ByteArrayInputStream input = new ByteArrayInputStream(success.getBytes());
       
        HTTPResponse response = new MockHttpResponse( input, "text/html");
        return new GetFeatureInfoResponse( response );
      }
     
      String failure = "FAILURE";
     
      ByteArrayInputStream input = new ByteArrayInputStream(failure.getBytes());
      HTTPResponse response = new MockHttpResponse( input, "text/html");
     
      return new GetFeatureInfoResponse( response );
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.wmsc.server.MockHttpResponse

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.