Package edu.sc.seis.TauP.cmdline
Class TauP_WebServe
java.lang.Object
edu.sc.seis.TauP.cmdline.TauP_Tool
edu.sc.seis.TauP.cmdline.TauP_WebServe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringintFields inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
ABREV_SYNOPSIS, abstractOutputTypeArgs, OPTIONS_HEADING, toolProps -
Constructor Summary
ConstructorsConstructorDescriptionDefault for local usage, no prefix to urlsTauP_WebServe(String wsNamespace) Default for local usage, no prefix to urls -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigContentType(String format, io.undertow.server.HttpServerExchange exchange) createQueryParamsFromPost(org.json.JSONObject postParams, io.undertow.server.HttpServerExchange exchange) createTool(String toolToRun) createVersionsPage(String errorMessage) voiddestroy()voidhandleCmdLine(TauP_Tool tool, io.undertow.server.HttpServerExchange exchange) voidhandleKnownModels(io.undertow.server.HttpServerExchange exchange) voidhandleParamHelp(io.undertow.server.HttpServerExchange exchange) voidinit()voidqueryParamsToCmdLineArgs(picocli.CommandLine.Model.CommandSpec spec, Map<String, Deque<String>> queryParams) static voidsetNamedDisconModel(TauP_Tool tool, VelocityModel vMod) static voidsetQuakeML(TauP_Tool tool, String quakemlText) static voidsetStationXML(TauP_Tool tool, String stationxmlText) voidstart()voidvoidwebRunTool(TauP_Tool tool, Map<String, Deque<String>> queryParams, io.undertow.server.HttpServerExchange exchange) Methods inherited from class edu.sc.seis.TauP.cmdline.TauP_Tool
call, configDefaults, getCmdLineArgs, getOutFileExtension, isDEBUG, isVerbose, setDEBUG, setOutFileBase, setOutFileExtension, setOutputFormat, setToolPropsFilename, setVerbose, toolNameFromClass
-
Field Details
-
disableOptions
-
port
public int port -
host
-
wsNamespace
-
wsServiceName
-
wsServiceVersion
-
PARAM_HELP
- See Also:
-
CMD_LINE
- See Also:
-
MODEL_NAMES
- See Also:
-
DEFAULT_SERVICE_NAMESPACE
- See Also:
-
DEFAULT_SERVICE
- See Also:
-
DEFAULT_SERVICE_VERSION
- See Also:
-
-
Constructor Details
-
TauP_WebServe
public TauP_WebServe()Default for local usage, no prefix to urls -
TauP_WebServe
Default for local usage, no prefix to urls
-
-
Method Details
-
init
public void init() -
printWelcomeMessage
public void printWelcomeMessage() -
start
public void start() -
setQuakeML
-
setNamedDisconModel
public static void setNamedDisconModel(TauP_Tool tool, VelocityModel vMod) throws SlownessModelException, TauModelException, IOException -
setStationXML
-
createQueryParamsFromPost
-
destroy
- Specified by:
destroyin classTauP_Tool- Throws:
TauPException
-
validateArguments
- Specified by:
validateArgumentsin classTauP_Tool- Throws:
TauModelException
-
createVersionsPage
-
configContentType
public void configContentType(String format, io.undertow.server.HttpServerExchange exchange) throws TauPException - Throws:
TauPException
-
createTool
-
queryParamsToCmdLineArgs
public static List<String> queryParamsToCmdLineArgs(picocli.CommandLine.Model.CommandSpec spec, Map<String, Deque<String>> queryParams) throws TauPException- Throws:
TauPException
-
handleParamHelp
- Throws:
TauPException
-
handleKnownModels
public void handleKnownModels(io.undertow.server.HttpServerExchange exchange) -
getKnownModels
-
handleCmdLine
public void handleCmdLine(TauP_Tool tool, io.undertow.server.HttpServerExchange exchange) throws TauPException - Throws:
TauPException
-
webRunTool
public void webRunTool(TauP_Tool tool, Map<String, Deque<String>> queryParams, io.undertow.server.HttpServerExchange exchange) throws Exception- Throws:
Exception
-
getOutputFormat
- Specified by:
getOutputFormatin classTauP_Tool
-