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 Object


Constructor Summary
SiteDataServletAccessor(String servletURL)
           
 
Method Summary
 Location getClosestLocation(Location loc)
           
 int getMaxLocsPerRequest()
           
 Element getValue(Location loc)
           
 ArrayList<Element> getValues(LocationList locs)
           
protected  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(String servletURL)
Method Detail

getMaxLocsPerRequest

public int getMaxLocsPerRequest()

setMaxLocsPerRequest

public void setMaxLocsPerRequest(int maxLocsPerRequest)

getValue

public Element getValue(Location loc)
                 throws IOException
Throws:
IOException

getClosestLocation

public Location getClosestLocation(Location loc)
                            throws IOException
Throws:
IOException

getValues

public ArrayList<Element> getValues(LocationList locs)
                             throws IOException
Throws:
IOException

openServletConnection

protected URLConnection openServletConnection()
                                       throws IOException
Throws:
IOException