org.eclipse.jetty.toolchain.test
Class SimpleRequest

java.lang.Object
  extended by org.eclipse.jetty.toolchain.test.SimpleRequest

public class SimpleRequest
extends Object

A super simple http request mechanism for simple testing purposes.

It is not meant to be robust or even configurable.

Do not use this for large responses, as the entire response body is always assumed to fit in a single String object.


Constructor Summary
SimpleRequest(URI serverURI)
           
 
Method Summary
 Properties getProperties(String relativePath)
           
 String getString(String relativePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRequest

public SimpleRequest(URI serverURI)
              throws UnknownHostException
Throws:
UnknownHostException
Method Detail

getString

public String getString(String relativePath)
                 throws IOException
Throws:
IOException

getProperties

public Properties getProperties(String relativePath)
                         throws IOException
Throws:
IOException


Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.