|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.webscripts.servlet.HTTPProxy
public class HTTPProxy
Simple server-side HTTP Request / Response
| Field Summary | |
|---|---|
protected javax.servlet.http.HttpServletResponse |
response
|
protected URL |
url
|
| Constructor Summary | |
|---|---|
HTTPProxy(String requestUrl,
javax.servlet.http.HttpServletResponse response)
Construct |
|
| Method Summary | |
|---|---|
protected void |
initialiseResponse(URLConnection urlConnection)
Initialise response |
void |
service()
Perform request |
protected void |
writeResponse(InputStream input,
OutputStream output)
Write response |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected URL url
protected javax.servlet.http.HttpServletResponse response
| Constructor Detail |
|---|
public HTTPProxy(String requestUrl,
javax.servlet.http.HttpServletResponse response)
throws MalformedURLException
requestUrl - url to requestresponse - response to write request back to
MalformedURLException| Method Detail |
|---|
public void service()
throws IOException
IOExceptionprotected void initialiseResponse(URLConnection urlConnection)
urlConnection - url connection
protected void writeResponse(InputStream input,
OutputStream output)
throws IOException
input - input stream of requestoutput - output stream of response
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||