Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Class MapViewerFlex

java.lang.Object
  extended by com.esri.gpt.catalog.search.MapViewerFlex
All Implemented Interfaces:
IMapViewer

public class MapViewerFlex
extends Object
implements IMapViewer

The Class MapViewerFlex. Understands what the Flex viewer can view and calls the Flex Viewer when appropriate.


Constructor Summary
MapViewerFlex()
           
 
Method Summary
 boolean canHandleResource()
          If resource can be handled
 RequestContext getRequestContext()
          Gets the request context.
 String getResourceUri()
          Gets the resource uri.
 boolean getUrlCanBeJscript()
          Gets the url can be jscript.
 String readAddToMapUrl()
          Reads the add to map url
 String readOpenDefaultMapViewerUrl()
          Reads url to open the default map viewer
 String readTarget()
          Returns "" if javascript allowed or returns "_blank"
 void setMapViewerConfigs(MapViewerConfigs mapViewerConfigs)
          Sets the map viewer configs.
 void setRequestContext(RequestContext context)
          Sets the request context.
 void setResourceUri(String resourceUri, String hintServiceType)
          Sets the resource uri.
 void setSearchResultRecord(SearchResultRecord searchResultRecord)
          Sets the search result record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapViewerFlex

public MapViewerFlex()
Method Detail

setMapViewerConfigs

public void setMapViewerConfigs(MapViewerConfigs mapViewerConfigs)
Sets the map viewer configs.

Specified by:
setMapViewerConfigs in interface IMapViewer
Parameters:
mapViewerConfigs - the map viewer configs

setResourceUri

public void setResourceUri(String resourceUri,
                           String hintServiceType)
Sets the resource uri.

Specified by:
setResourceUri in interface IMapViewer
Parameters:
resourceUri - the resource uri
hintServiceType - the hint service type

setSearchResultRecord

public void setSearchResultRecord(SearchResultRecord searchResultRecord)
Sets the search result record.

Specified by:
setSearchResultRecord in interface IMapViewer
Parameters:
searchResultRecord - the search result record

setRequestContext

public void setRequestContext(RequestContext context)
Sets the request context.

Specified by:
setRequestContext in interface IMapViewer
Parameters:
context - the context

getRequestContext

public RequestContext getRequestContext()
Gets the request context.

Returns:
the request context

getResourceUri

public String getResourceUri()
Gets the resource uri.

Returns:
the resource uri (trimmed, never null)

getUrlCanBeJscript

public boolean getUrlCanBeJscript()
Gets the url can be jscript.

Returns:
the url can be jscript

readAddToMapUrl

public String readAddToMapUrl()
Reads the add to map url

Specified by:
readAddToMapUrl in interface IMapViewer
Returns:
the url (possibly none)

canHandleResource

public boolean canHandleResource()
If resource can be handled

Specified by:
canHandleResource in interface IMapViewer
Returns:
true if resource can be handled or false if not

readTarget

public String readTarget()
Returns "" if javascript allowed or returns "_blank"

Specified by:
readTarget in interface IMapViewer
Returns:
link target

readOpenDefaultMapViewerUrl

public String readOpenDefaultMapViewerUrl()
Reads url to open the default map viewer

Specified by:
readOpenDefaultMapViewerUrl in interface IMapViewer
Returns:
The default map viewer url

Esri Geoportal Server
1.0

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