|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Builder for URLConnection objects used to forward requests
to the remote online application.
| Method Summary | |
HttpURLConnection |
buildConnection(javax.servlet.http.HttpServletRequest request,
String publicURLPrefix,
String realURLPrefix,
javax.net.ssl.SSLSocketFactory sslSocketFactory)
Builds an HttpURLConnection to a URL which is derived
from an HttpServletRequest URL, by substitution of a
public URL prefix for the real URL prefix.The HttpURLConnection has been created by URL.openConnection(), but
it has not yet been connected to by URLConnection.connect().The field settings of the HttpURLConnection are: allowUserInteraction = false
doInput = true
doOutput = true
requestMethod = request.getMethod()
useCaches = false
|
| Method Detail |
public HttpURLConnection buildConnection(javax.servlet.http.HttpServletRequest request,
String publicURLPrefix,
String realURLPrefix,
javax.net.ssl.SSLSocketFactory sslSocketFactory)
throws IOException
URL which is derived
from an HttpServletRequest URL, by substitution of a
public URL prefix for the real URL prefix.URL.openConnection(), but
it has not yet been connected to by URLConnection.connect().allowUserInteraction = falsedoInput = truedoOutput = truerequestMethod = request.getMethod()useCaches = falserequest - the incoming request which shall be forwardedpublicURLPrefix - the public URL prefix to be substituted by the real URL prefixrealURLPrefix - the URL prefix to substitute the public URL prefixsslSocketFactory - factory to be used for creating an SSL socket in case
of a URL for scheme "https:";
null, the default SSL socket factory would be usedURL.openConnection(), connecting to
the requested URL with publicURLPrefix substituted by realURLPrefixURL.openConnection(),
com.sun.net.ssl.HttpsURLConnection#getDefaultSSLSocketFactory()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||