Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [udig-devel] catalog service url retrieval

What is Mapgraphics?! I don't understand...
I want to programmatically check availability of services that I have already added in udig catalog...
Regards.

-----Original Message-----
From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx [mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of andrea antonello
Sent: jueves, 28 de mayo de 2009 18:31
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] catalog service url retrieval

Hi Mario,
here is an example to get Mapgraphics by url:

List<IResolve> mapgraphics =
CatalogPlugin.getDefault().getLocalCatalog().find(MapGraphicService.SERVICE_URL,
null);

If you want to get the service by id, here an example of how I do it
for the JGrass service:

JGrassService location = CatalogPlugin.getDefault().getLocalCatalog().getById(
                JGrassService.class, locationId,
ProgressManager.instance().get());


Hope that helps,
If you have problems, come back on this, I can do better tomorrow,
have to run now.

Ciao
Andrea



2009/5/28 Mario Nuñez Jimenez <mario.nunez@xxxxxxxxxxxxxxx>:
> May be useful any of those methods?
>
> With the service URL I expecto to be able to check the service but I don't
> know If udig can do it already... I think so since I see that unavailable
> services turns red in catalog view...
>
>
>
> CatalogPlugin cp = CatalogPlugin.getDefault();
>
> ICatalog[] server = cp.getCatalogs();
>
>
>
> a) server[1].getStatus()
>
> b) server[1].getIdentifier()
>
>
>
> ________________________________
>
> From: Mario Nuñez Jimenez
> Sent: jueves, 28 de mayo de 2009 18:05
> To: 'User-friendly Desktop Internet GIS'
> Subject: [udig-devel] catalog service url retrieval
>
>
>
> Hello,
>
> I want to ask you how can I access to udig's catalog in order to retrieve
> each added service url ?
>
> That's why I need to do service monitoring to know when a service is offline
> and then it will affect map/layer display...
>
> Thank you in advance!
>
> 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. 
------------------------------------------------------------------



Back to the top