Sun Java System Web Server 6.1 SP6 NSAPI Programmer's Guide


Applicable in Init-class directives.

This function lets you extend the HTTP protocol by registering new HTTP methods. (You do not need to register the default HTTP methods.)

Upon accepting a connection, the server checks if the method it received is known to it. If the server does not recognize the method, it returns a “501 Method Not Implemented” error message.


The following table describes parameters for the register-http-method function.

Table 2–15 register-http-method parameters




Comma-separated list of the names of the methods you are registering. 


The following example shows the use of register-http-method and a Service function for one of the methods.

Init fn="register-http-method" methods="MY_METHOD1,MY_METHOD2"
Service fn="MyHandler" method="MY_METHOD1"