Bug 391483 - ShutdownHandler usage example contains invalid POST parameter
Summary: ShutdownHandler usage example contains invalid POST parameter
Status: CLOSED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: documentation (show other bugs)
Version: 7.0.0   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 7.6.x   Edit
Assignee: Shirley Boulay CLA
QA Contact:
URL: http://download.eclipse.org/jetty/sta...
Whiteboard:
Keywords: Documentation, example
Depends on:
Blocks:
 
Reported: 2012-10-09 16:17 EDT by Piotr Kukiełka CLA
Modified: 2012-10-09 16:23 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kukiełka CLA 2012-10-09 16:17:07 EDT
You can find it here:
http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/server/handler/ShutdownHandler.html

Method attemptShutdown showed in the documentation doesn't work at all.
To fix it parameter name 'cookie' should be replaced with 'token'.

- URL url = new URL("http://localhost:" + port + "/shutdown?cookie=" + shutdownCookie);
+ URL url = new URL("http://localhost:" + port + "/shutdown?token=" + shutdownCookie);
Comment 1 Jesse McConnell CLA 2012-10-09 16:23:14 EDT
fixed, thanks!