Hello again,
I tried:
CatalogPlugin cp = CatalogPlugin.getDefault();
ICatalog catalog = cp.getLocalCatalog();
List<IResolve> resueltos = null;
try {
resueltos = catalog.members(new NullProgressMonitor() );
} catch (IOException e1) {
e1.printStackTrace();
}
for(int i=0; i<resueltos.size(); i++) {
System.out.println(resueltos.get(i).getStatus() + " " +
resueltos.get(i).getIdentifier() );
}
It does not work. I get always same status for the services in the catalog. If
I disconnect the network or if I change the IP to a wrong one, I don't get the
maps but those mehotds give me the same status.
If I start my application without network connection then the status are
reflected as notConnected but if I connect it without restarting the
application I still getting thew same notConnected status.
To sum up, I still having the same problem to detect which services added to
the catalog are able or not in each moment.
Any tip or idea?
I will remember you that I am using:
-WMS in own server
-WMS in external server
-Local jpg file
Thank you in advance
Kind regards.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jody Garnett
Sent: martes, 02 de junio de 2009 15:06
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] catalog service url retrieval
There are a number of search and find methods that will return you a
list of matches.
You can also use the members method to get the list of all service
instances; please be careful with the methods in order not to
accidentally connect to any service you do not plan to actually use.
Have a look in side some of those find and search methods to see how it
is used.
Jody
Mario Nuñez Jimenez wrote:
> The only thing I found:
>
> IService shapefile = catalog.getById( IService.class, url, progressmonitor);
>
> With this I should retrieve the services added to the catalog right?
> But I have to know the URL before doing it right?
> Is not a way to retrieve the service in order to know its URL?
> So I have to get the URL by other way...
>
> I am right?
> Regards!
> ------------------------------------------------------------------
> This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive
> this e-mail in error, please notify the sender immediately and destroy it.
> As its integrity cannot be secured on the Internet, the Atos Origin
> group liability cannot be triggered for the message content. Although
> the sender endeavours to maintain a computer virus-free network,
> the sender does not warrant that this transmission is virus-free and
> will not be liable for any damages resulting from any virus transmitted.
>
> Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
> destinada solamente a la(s) persona(s) mencionadas anteriormente
> pueden estar protegidos por secreto profesional.
> Si usted recibe este correo electronico por error, gracias por informar
> inmediatamente al remitente y destruir el mensaje.
> Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
> no se hace responsable por su contenido. Su contenido no constituye ningun
> compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas
> partes.
> Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
> no puede garantizar nada al respecto y no sera responsable de cualesquiera
> danos que puedan resultar de una transmision de virus.
> ------------------------------------------------------------------
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive
this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin
group liability cannot be triggered for the message content. Although
the sender endeavours to maintain a computer virus-free network,
the sender does not warrant that this transmission is virus-free and
will not be liable for any damages resulting from any virus transmitted.
Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente
pueden estar protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
no se hace responsable por su contenido. Su contenido no constituye ningun
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas
partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
no puede garantizar nada al respecto y no sera responsable de cualesquiera
danos que puedan resultar de una transmision de virus.
------------------------------------------------------------------
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel