Package org.seaborne.delta.server.http
Class Args
- java.lang.Object
-
- org.seaborne.delta.server.http.Args
-
public class Args extends Object
Parsed arguments for Patch and Fetch.The query string is used for arguments.
- dataset – Id or URI for the datasource
- patch – patch id (for fetch)
- version – version number
- ref – pointer to predefined arguments [Not Implemented]
- zone – pointer to predefined arguments [Not Implemented]
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArgsargsParams(javax.servlet.http.HttpServletRequest request)static ArgspathArgs(javax.servlet.http.HttpServletRequest request)Process an HTTP request to extract the arguments.
-
-
-
Method Detail
-
argsParams
public static Args argsParams(javax.servlet.http.HttpServletRequest request)
-
pathArgs
public static Args pathArgs(javax.servlet.http.HttpServletRequest request)
Process an HTTP request to extract the arguments. Two styles are supported: the preferred RESTful coatainer style: *- Append patch:
POSTto /{name}/ - Get patch:
GETfrom /{name}/log/{id or version}
- Append patch:
POSTto /{srvName}?datasource={name} - Get patch:
GETfrom /{srvName}?datasource={name}&id={id} or /{srcName}?datasource={name}&version={version}.
The registration token is always a query string parameter.
- Append patch:
-
-