public class HTTPProxy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.http.HttpServletResponse |
response |
protected java.net.URL |
url |
Constructor and Description |
---|
HTTPProxy(java.lang.String requestUrl,
javax.servlet.http.HttpServletResponse response)
Construct
|
Modifier and Type | Method and Description |
---|---|
protected void |
initialiseResponse(java.net.URLConnection urlConnection)
Initialise response
|
void |
service()
Perform request
|
protected void |
setRequestHeaders(java.net.URLConnection urlConnection)
Set request headers
|
protected void |
writeResponse(java.io.InputStream input,
java.io.OutputStream output)
Write response
|
protected java.net.URL url
protected javax.servlet.http.HttpServletResponse response
public HTTPProxy(java.lang.String requestUrl, javax.servlet.http.HttpServletResponse response) throws java.net.MalformedURLException
requestUrl
- url to requestresponse
- response to write request back tojava.net.MalformedURLException
public void service() throws java.io.IOException
java.io.IOException
protected void initialiseResponse(java.net.URLConnection urlConnection)
urlConnection
- url connectionprotected void setRequestHeaders(java.net.URLConnection urlConnection)
urlConnection
- url connectionprotected void writeResponse(java.io.InputStream input, java.io.OutputStream output) throws java.io.IOException
input
- input stream of requestoutput
- output stream of responsejava.io.IOException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.