hello together,
is there still no solution to add a map layer into the integrated mapviewer
when using a connection thru proxy?
thanx and regards
armin
--
Im Auftrag
--
Armin Retterath
Kompetenz- und Geschäftsstelle Geodateninfrastruktur Rheinland-Pfalz
beim
Landesamt für Vermessung und Geobasisinformation Rheinland-Pfalz
Ferdinand-Sauerbruch-Straße 15
56073 Koblenz
Telefon 0261/492-466
Telefax 0261/492-492
armin.retterath@anonymised.com
http://www.geoportal.rlp.de
Hello,
On 11/30/2010 02:13 PM, Armin Retterath wrote:
is there still no solution to add a map layer into the integrated mapviewer
when using a connection thru proxy?
Here's the quick hack I did to the Java code in order to use a proxy.
In the file "web/src/main/java/org/geonetwork/http/proxy/HttpProxyServlet.java", in method doGet(), around line #104, you can add something like :
client.getHostConfiguration()
.setProxy(System.getProperty("http.proxyHost"),
Integer.valueOf(System.getProperty("http.proxyPort"));
As I said, it's nothing very clean -- especially when there's some proxy configuration info in GeoNetwork settings, which should be used instead of the "http.proxyHost|Port" properties.
But, hey, at least it works 
--
Damiano ALBANI
Hi
I created a ticket for this issue:
http://trac.osgeo.org/geonetwork/ticket/395
Thanks for reporting and regards,
Jose García
GeoCat bv
On Tue, Nov 30, 2010 at 2:26 PM, Damiano ALBANI <
damiano.albani@anonymised.com> wrote:
Hello,
On 11/30/2010 02:13 PM, Armin Retterath wrote:
> is there still no solution to add a map layer into the integrated
mapviewer
> when using a connection thru proxy?
>
Here's the quick hack I did to the Java code in order to use a proxy.
In the file
"web/src/main/java/org/geonetwork/http/proxy/HttpProxyServlet.java", in
method doGet(), around line #104, you can add something like :
client.getHostConfiguration()
.setProxy(System.getProperty("http.proxyHost"),
Integer.valueOf(System.getProperty("http.proxyPort"));
As I said, it's nothing very clean -- especially when there's some proxy
configuration info in GeoNetwork settings, which should be used instead
of the "http.proxyHost|Port" properties.
But, hey, at least it works 
--
Damiano ALBANI
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork