|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mapfish.print.config.Config
public class Config
Bean mapping the root of the configuration file.
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
LOGGER
|
| Constructor Summary | |
|---|---|
Config()
|
|
| Method Summary | |
|---|---|
static Config |
fromInputStream(java.io.InputStream instream)
|
static Config |
fromString(java.lang.String strConfig)
|
static Config |
fromYaml(java.io.File file)
Create an instance out of the given file. |
int |
getBestScale(double target)
|
java.util.TreeSet<java.lang.Integer> |
getDpis()
|
java.util.TreeSet<java.lang.String> |
getFonts()
|
org.apache.commons.httpclient.HttpClient |
getHttpClient()
Get or create the http client to be used to fetch all the map data. |
Layout |
getLayout(java.lang.String name)
|
org.pvalsecc.concurrent.OrderedResultsExecutor<MapTileTask> |
getMapRenderingExecutor()
|
boolean |
isScalePresent(int scale)
|
boolean |
isTilecacheMerging()
|
void |
printClientConfig(org.json.JSONWriter json)
|
void |
setConnectionTimeout(int connectionTimeout)
|
void |
setDpis(java.util.TreeSet<java.lang.Integer> dpis)
|
void |
setFonts(java.util.TreeSet<java.lang.String> fonts)
|
void |
setGlobalParallelFetches(int globalParallelFetches)
|
void |
setHosts(java.util.List<HostMatcher> hosts)
|
void |
setLayouts(Layouts layouts)
|
void |
setPerHostParallelFetches(int perHostParallelFetches)
|
void |
setScales(java.util.TreeSet<java.lang.Integer> scales)
|
void |
setSocketTimeout(int socketTimeout)
|
void |
setTilecacheMerging(boolean tilecacheMerging)
|
void |
stop()
Stop all the threads and stuff used for this config. |
void |
validate()
Called just after the config has been loaded to check it is valid. |
boolean |
validateUri(java.net.URI uri)
Make sure an URI is authorized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger LOGGER
| Constructor Detail |
|---|
public Config()
| Method Detail |
|---|
public static Config fromYaml(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic static Config fromInputStream(java.io.InputStream instream)
public static Config fromString(java.lang.String strConfig)
public Layout getLayout(java.lang.String name)
public void setLayouts(Layouts layouts)
public void setDpis(java.util.TreeSet<java.lang.Integer> dpis)
public java.util.TreeSet<java.lang.Integer> getDpis()
public void printClientConfig(org.json.JSONWriter json)
throws org.json.JSONException
org.json.JSONExceptionpublic void setScales(java.util.TreeSet<java.lang.Integer> scales)
public boolean isScalePresent(int scale)
public void setHosts(java.util.List<HostMatcher> hosts)
public void setFonts(java.util.TreeSet<java.lang.String> fonts)
public java.util.TreeSet<java.lang.String> getFonts()
public boolean validateUri(java.net.URI uri)
throws java.net.UnknownHostException,
java.net.SocketException,
java.net.MalformedURLException
java.net.UnknownHostException
java.net.SocketException
java.net.MalformedURLExceptionpublic void validate()
InvalidValueException - When there is a problempublic int getBestScale(double target)
public org.pvalsecc.concurrent.OrderedResultsExecutor<MapTileTask> getMapRenderingExecutor()
public void stop()
public void setGlobalParallelFetches(int globalParallelFetches)
public void setPerHostParallelFetches(int perHostParallelFetches)
public org.apache.commons.httpclient.HttpClient getHttpClient()
public void setTilecacheMerging(boolean tilecacheMerging)
public boolean isTilecacheMerging()
public void setSocketTimeout(int socketTimeout)
public void setConnectionTimeout(int connectionTimeout)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||