All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.resources.PasswordEditorFrame

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.ResourceFrame
                                   |
                                   +----org.w3c.tools.resources.ProtocolFrame
                                           |
                                           +----org.w3c.jigsaw.frames.HTTPFrame
                                                   |
                                                   +----org.w3c.jigsaw.frames.PostableFrame
                                                           |
                                                           +----org.w3c.jigsaw.resources.PasswordEditorFrame

public class PasswordEditorFrame
extends PostableFrame

Variable Index

 o ATTR_REALM
Attribute index - The name of the realm to edit.

Constructor Index

 o PasswordEditorFrame()

Method Index

 o changePassword(String, String, String)
 o generateForm()
 o generateForm(String)
 o get(Request)
Handle a get request on the password editor.
 o getRealm()
Get the name of the realm to edit.
 o handle(Request, URLDecoder)
Handle a post request.

Variables

 o ATTR_REALM
 protected static int ATTR_REALM
Attribute index - The name of the realm to edit.

Constructors

 o PasswordEditorFrame
 public PasswordEditorFrame()

Methods

 o getRealm
 public String getRealm()
Get the name of the realm to edit.

Returns:
The name of the realm to edit, as a String.
 o changePassword
 protected synchronized boolean changePassword(String username,
                                               String oldpassword,
                                               String newpassword)
 o generateForm
 protected HtmlGenerator generateForm(String msg)
 o generateForm
 protected final HtmlGenerator generateForm()
 o get
 public Reply get(Request request) throws ProtocolException, ResourceException
Handle a get request on the password editor. Dump a form suitable for editing a user entry.

Parameters:
request - The request to handle.
Returns:
An HTTP Reply instance.
Throws: ProtocolException
If processing the request failed.
Throws: ResourceException
If this resource got a fatal error.
Overrides:
get in class PostableFrame
 o handle
 public Reply handle(Request request,
                     URLDecoder data) throws ProtocolException
Handle a post request. Do change the password, when possible.

Parameters:
request - The request to handle.
data - The form decoded data.
Returns:
An HTTP Reply instance.
Throws: ProtocolException
If processing the request failed.
Overrides:
handle in class PostableFrame

All Packages  Class Hierarchy  This Package  Previous  Next  Index