org.opensha.commons.data.siteData.servlet
Class SiteDataServletAccessor<Element>

java.lang.Object
  extended by org.opensha.commons.data.siteData.servlet.SiteDataServletAccessor<Element>

public class SiteDataServletAccessor<Element>
extends java.lang.Object


Constructor Summary
SiteDataServletAccessor(ServletEnabledSiteData<Element> data, java.lang.String servletURL)
           
 
Method Summary
 Location getClosestLocation(Location loc)
           
 int getMaxLocsPerRequest()
           
 Element getValue(Location loc)
           
 java.util.ArrayList<Element> getValues(LocationList locs)
           
protected  java.net.URLConnection openServletConnection()
           
 void setMaxLocsPerRequest(int maxLocsPerRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteDataServletAccessor

public SiteDataServletAccessor(ServletEnabledSiteData<Element> data,
                               java.lang.String servletURL)
Method Detail

getMaxLocsPerRequest

public int getMaxLocsPerRequest()

setMaxLocsPerRequest

public void setMaxLocsPerRequest(int maxLocsPerRequest)

getValue

public Element getValue(Location loc)
                 throws java.io.IOException
Throws:
java.io.IOException

getClosestLocation

public Location getClosestLocation(Location loc)
                            throws java.io.IOException
Throws:
java.io.IOException

getValues

public java.util.ArrayList<Element> getValues(LocationList locs)
                                       throws java.io.IOException
Throws:
java.io.IOException

openServletConnection

protected java.net.URLConnection openServletConnection()
                                                throws java.io.IOException
Throws:
java.io.IOException