@Path(value="/") public class KmlEndpoint extends Object
NetworkLink
s. The KML Network Link will link Google Earth to
the Catalog through the OpenSearch Endpoint.Constructor and Description |
---|
KmlEndpoint(BrandingRegistry brandingPlugin,
CatalogFramework catalogFramework) |
Modifier and Type | Method and Description |
---|---|
de.micromata.opengis.kml.v_2_2_0.Kml |
getAvailableSources(javax.ws.rs.core.UriInfo uriInfo)
Creates a list of
NetworkLink s, one for each Source
including the local catalog. |
String |
getBaseUrl() |
String |
getContact() |
String |
getDescription() |
byte[] |
getIcon(javax.ws.rs.core.UriInfo uriInfo,
String id)
Retrieves an icon from the hosted directory based on the id provided.
|
de.micromata.opengis.kml.v_2_2_0.Kml |
getKmlNetworkLink(javax.ws.rs.core.UriInfo uriInfo)
Creates a
NetworkLink to provide a layer to KML Clients. |
de.micromata.opengis.kml.v_2_2_0.Kml |
getKmlStyles(javax.ws.rs.core.UriInfo uriInfo)
Kml REST Get.
|
String |
getLogo() |
String |
getProductName() |
String |
getWebSite() |
void |
setDescription(String description)
Sets the Description that will be used as the description of the Root
NetworkLink . |
void |
setIconLoc(String iconLoc)
Sets the root directory of icons to be provided via this endpoint.
|
void |
setLogo(String logo)
Sets the URL of the Logo that will be used in the description of the Root
NetworkLink . |
void |
setMaxResults(Integer maxResults)
Sets the Maximum Number of results each
NetworkLink will return. |
void |
setStyleUrl(String url)
Attempts to load a KML
Style from a file provided via
a file system path. |
void |
setVisibleByDefault(Boolean visibleByDefault)
Sets if the ddf.catalog.source.Source
NetworkLink s should be Visible by Default. |
void |
setWebSite(String webSite)
Sets the Web Site URL that will be used in the description of the Root
NetworkLink . |
public KmlEndpoint(BrandingRegistry brandingPlugin, CatalogFramework catalogFramework)
public void setStyleUrl(String url)
Style
from a file provided via
a file system path.url
- - the path to the file.public void setIconLoc(String iconLoc)
iconLoc
- - the path to the directory of iconspublic String getDescription()
public void setDescription(String description)
NetworkLink
.description
- - the Description of the Root NetworkLink
public void setVisibleByDefault(Boolean visibleByDefault)
NetworkLink
s should be Visible by Default.visibleByDefault
- - true to enablepublic void setMaxResults(Integer maxResults)
NetworkLink
will return.maxResults
- - maximum number of results to returnpublic String getWebSite()
public void setWebSite(String webSite)
NetworkLink
.webSite
- - the URL of the web sitepublic String getLogo()
public void setLogo(String logo)
NetworkLink
.logo
- - the URL to the logopublic String getProductName()
public String getContact()
public String getBaseUrl()
@GET @Path(value="/") @Produces(value="application/vnd.google-earth.kml+xml") public de.micromata.opengis.kml.v_2_2_0.Kml getKmlNetworkLink(@Context javax.ws.rs.core.UriInfo uriInfo)
NetworkLink
to provide a layer to KML Clients.uriInfo
- - injected resource providing the URI.@GET @Path(value="/sources") @Produces(value="application/vnd.google-earth.kml+xml") public de.micromata.opengis.kml.v_2_2_0.Kml getAvailableSources(@Context javax.ws.rs.core.UriInfo uriInfo)
NetworkLink
s, one for each Source
including the local catalog.uriInfo
- - injected resource provding the URI.Kml
containing a folder of NetworkLink
s.@GET @Path(value="/styles") @Produces(value="application/vnd.google-earth.kml+xml") public de.micromata.opengis.kml.v_2_2_0.Kml getKmlStyles(@Context javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- javax.ws.rs.WebApplicationException
@GET @Path(value="/icons/{id:.+}") @Produces(value={"image/png","image/jpeg","image/tiff","image/gif"}) public byte[] getIcon(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="id") String id)
uriInfo
- - injected resource providing the URIid
- - the id (filename) of the iconThis work is licensed under a Creative Commons Attribution 4.0 International License.