Esri Geoportal Server
1.2.9

com.esri.gpt.control.georss
Class FeedLinkBuilder

java.lang.Object
  extended by com.esri.gpt.control.georss.FeedLinkBuilder

public class FeedLinkBuilder
extends Object

Feed link builder.


Constructor Summary
FeedLinkBuilder(RequestContext context, String baseContextPath, MessageBroker messageBroker)
          Creates instance of the link builder.
 
Method Summary
 void build(IFeedRecord record)
          Buids links and resources.
protected  void buildAddToMapLink(IFeedRecord record)
          Builds 'Add To Map' link.
protected  void buildAGSLinks(IFeedRecord record)
          Builds ArcGIS links.
protected  void buildContentTypeResource(IFeedRecord record)
          Builds 'Content Type' resource link.
protected  void buildDetailsLink(IFeedRecord record)
          Builds 'Details' link.
protected  void buildMetadataLink(IFeedRecord record)
          Builds 'Metadata' link.
protected  void buildOpenLink(IFeedRecord record)
          Builds 'Open' link.
protected  void buildPreviewLink(IFeedRecord record)
          Builds 'Preview' link.
protected  void buildThumbnailResource(IFeedRecord record)
          Builds 'Thumbnail' resource link.
protected  String encodeUrlParam(String value)
          Encodes URL parameter.
protected  String getMapViewerUrl()
          Gets map viewer URL.
protected  String makeLabel(String resourceKey)
          Makes label.
protected  ResourceLink makeLink(String url, String tag, String resourceKey)
          Makes a resource link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedLinkBuilder

public FeedLinkBuilder(RequestContext context,
                       String baseContextPath,
                       MessageBroker messageBroker)
Creates instance of the link builder.

Parameters:
context - request context
baseContextPath - base context path
messageBroker - message broker
Method Detail

getMapViewerUrl

protected String getMapViewerUrl()
Gets map viewer URL.

Returns:
map viewer URL

build

public void build(IFeedRecord record)
Buids links and resources.

Parameters:
record - record

buildAGSLinks

protected void buildAGSLinks(IFeedRecord record)
Builds ArcGIS links.

Parameters:
record - record

buildAddToMapLink

protected void buildAddToMapLink(IFeedRecord record)
Builds 'Add To Map' link.

Parameters:
record - record

buildMetadataLink

protected void buildMetadataLink(IFeedRecord record)
Builds 'Metadata' link.

Parameters:
record - record

buildDetailsLink

protected void buildDetailsLink(IFeedRecord record)
Builds 'Details' link.

Parameters:
record - record

buildPreviewLink

protected void buildPreviewLink(IFeedRecord record)
Builds 'Preview' link.

Parameters:
record - record

buildOpenLink

protected void buildOpenLink(IFeedRecord record)
Builds 'Open' link.

Parameters:
record - record

buildContentTypeResource

protected void buildContentTypeResource(IFeedRecord record)
Builds 'Content Type' resource link.

Parameters:
record - record

buildThumbnailResource

protected void buildThumbnailResource(IFeedRecord record)
Builds 'Thumbnail' resource link.

Parameters:
record - record

makeLink

protected ResourceLink makeLink(String url,
                                String tag,
                                String resourceKey)
Makes a resource link.

Parameters:
url - URL
tag - tag
resourceKey - resource key for the label
Returns:
link

makeLabel

protected String makeLabel(String resourceKey)
Makes label.

Parameters:
resourceKey - resource key for the label
Returns:
label

encodeUrlParam

protected String encodeUrlParam(String value)
Encodes URL parameter.

Parameters:
value - parameter to encode
Returns:
encoded parameter

Esri Geoportal Server
1.2.9

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