JANUS WEB: Difference between revisions
m (add ID) |
m (→Syntax: add MOVE method) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 69: | Line 69: | ||
<table> | <table> | ||
<tr><th><var>ANY</var></th> | <tr><th><var>ANY</var></th> | ||
<td>Any HTTP | <td>Any of the <var>JANUS WEB</var> supported HTTP methods (subject to the restriction that the length of the method name must not exceed 16 characters). </td></tr> | ||
</td></tr> | |||
<tr><th><var>CONNECT</var></th> | <tr><th><var>CONNECT</var></th> | ||
<td> | <td>A request to a proxy to establish an HTTP tunnel. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
<tr><th><var>COPY</var></th> | <tr><th><var>COPY</var></th> | ||
<td> | <td>A request to create a duplicate of the specified source resource. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
<tr><th><var>DELETE</var></th> | <tr><th><var>DELETE</var></th> | ||
<td> | <td>A request to delete the resource identified by the specified network address. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
<tr><th><var>GET</var></th> | <tr><th><var>GET</var></th> | ||
Line 92: | Line 90: | ||
<tr><th><var>LOCK</var></th> | <tr><th><var>LOCK</var></th> | ||
<td> | <td>A request to take out a lock on the specified resource. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
<tr><th><var>MKCOL</var></th> | <tr><th><var>MKCOL</var></th> | ||
<td> | <td>A request to create a WebDAV collection at the specified location on the server. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
<tr><th><var>MOVE</var></th> | |||
<td>A request to move the specified source resource to the indicated destination resource. This method is supported as of version 7.7 of Model 204.</td></tr> | |||
<tr><th><var>OPTIONS</var></th> | <tr><th><var>OPTIONS</var></th> | ||
<td> | <td>A request for information about the communication options available. | ||
This method is supported as of version 7.7 of Model 204.</td></tr> | |||
<tr><th><var>OTHER</var></th> | <tr><th><var>OTHER</var></th> | ||
Line 104: | Line 106: | ||
<tr><th><var>PATCH</var></th> | <tr><th><var>PATCH</var></th> | ||
<td> | <td>A request to apply changes to the specified resource. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
<tr><th><var>POST</var></th> | <tr><th><var>POST</var></th> | ||
Line 110: | Line 112: | ||
<tr><th><var>PROPFIND</var></th> | <tr><th><var>PROPFIND</var></th> | ||
<td> | <td>A request to retrieve properties, stored as XML, from the specified resource. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
<tr><th><var>PROPPATCH</var></th> | <tr><th><var>PROPPATCH</var></th> | ||
<td> | <td>A request to alter properties defined on the specified resource. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
<tr><th><var>PUT</var></th> | <tr><th><var>PUT</var></th> | ||
Line 119: | Line 121: | ||
<tr><th><var>TRACE</var></th> | <tr><th><var>TRACE</var></th> | ||
<td> | <td>A request to return the entire request message, as data for testing or diagnostic information. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
<tr><th><var>UNLOCK</var></th> | <tr><th><var>UNLOCK</var></th> | ||
<td> | <td>A request to remove a lock on the specified resource. This method is supported as of version 7.7 of Model 204.</td></tr> | ||
</table> | </table> | ||
Latest revision as of 00:52, 19 August 2016
Define web port characteristics
The JANUS WEB command defines the rules for a Janus Web Server running on a WEBSERV port. Web rules control access and routing of URL requests, and they can cause a request for a URL to initiate a complex database process.
Syntax
JANUS WEB portname rule_type [method] url [optional parameters]
The JANUS WEB command differs from most Janus commands in that it usually takes a set of commands to fully specify the rules that give a web server its characteristics. For instance, it may take a number of commands to specify user ID access, to restrict the range of IP addresses that may connect, and then to specify the server's routing and behavior based on different types of requested URLs. The order in which JANUS WEB commands are specified also affects how they are processed.
The first four parameters are positional, and all parameters are required but the method:
portname | The 1- to 30-character name of the port for which the access and URL processing rules are being defined. | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rule_type | The type of web rule that is being specified for the port. Valid values are:
The order in which the JANUS WEB rule types are shown above is the order in which they are processed. Within each rule_type, rules are processed from most recent to oldest:
| ||||||||||||||||||||||||||||||||||||||
method | The HTTP method(s) that applies to the rule. The method value can be any of the following:
GET+POST is assumed. | ||||||||||||||||||||||||||||||||||||||
url | Universal Resource Locator (URL). Every web request contains a URL, which can be considered to specify the "name" or "identity" of the "object" being requested. For example, the URL may specify the name of a file or the name (and some parameters) of an application. The url specified in the JANUS WEB command is a case-sensitive pattern, which is compared to the requested URL; the last rule that matches the URL is the rule that applies. The pattern can include an asterisk (*) as a "wildcard" indicator (*.jpg thus specifies any URL with a .jpg suffix).
Note: Janus port definitions include the UPCASE specification by default. If you define a web rule using a lowercase URL, the rule may fail in the default case where the incoming URL is converted to uppercase. For example, a TYPE rule that uses the pattern The url value can also be the name of an exception condition. | ||||||||||||||||||||||||||||||||||||||
optional parameters | The optional parameters allowed for the JANUS WEB command depend on the rule_type that was specified; see the List of JANUS WEB subcommands. |
The JANUS CLSOCK and JANUS SRVSOCK commands are used by Janus Sockets to establish rules for CLSOCK ports and SRVSOCK ports, respectively. Note that the JANUS WEB command differs from the corresponding rules available with the JANUS CLSOCK and JANUS SRVSOCK commands in the following ways:
- JANUS WEB does not allow any optional parameters (for example, USGROUP) on the DISALLOW rule.
- The default access for WEBSERV non-SSL ports and SRVSOCK ports is ALLOW. The default access for WEBSERV SSL ports and CLSOCK ports is DISALLOW.
- ALLOW and DISALLOW are the only rule types for JANUS CLSOCK and JANUS SRVSOCK; there are a number of other rule types for JANUS WEB.