Esri Geoportal Server
1.0

com.esri.gpt.control.rest.repositories
Class CswRepository

java.lang.Object
  extended by com.esri.gpt.control.rest.repositories.CswRepository

public class CswRepository
extends Object

Provides utility functions associated with registered CSW reposirories.


Field Summary
static String XSLT_CSW_TO_HTML
          XSLT for transforming CSW capabilities to HTML: "gpt/metadata/ogc/csw-to-html.xslt"
 
Constructor Summary
CswRepository()
          Default constructor.
 
Method Summary
 String queryCswUrl(RequestContext context, String rid)
          Returns the URL associated with a registered CSW repository.
 String transformToHtml(String url)
          Transforms the response of a CSW GetCapabilities request to an HTML suitable for display within the GPt searach page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSLT_CSW_TO_HTML

public static final String XSLT_CSW_TO_HTML
XSLT for transforming CSW capabilities to HTML: "gpt/metadata/ogc/csw-to-html.xslt"

See Also:
Constant Field Values
Constructor Detail

CswRepository

public CswRepository()
Default constructor.

Method Detail

queryCswUrl

public String queryCswUrl(RequestContext context,
                          String rid)
                   throws SQLException
Returns the URL associated with a registered CSW repository.

Parameters:
context - request context
rid - the remote CSW repository id
Returns:
the registered URL for the remote repository
Throws:
SQLException - if an exception occurs

transformToHtml

public String transformToHtml(String url)
                       throws TransformerException
Transforms the response of a CSW GetCapabilities request to an HTML suitable for display within the GPt searach page.
gpt/metadata/ogc/csw-to-html.xslt

Parameters:
url - the CSW GetCapabilities URL
Returns:
the HTML representation
Throws:
TransformerException - if an exception occurs

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.