com.gargoylesoftware.htmlunit
Class SubmitMethod

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.SubmitMethod
All Implemented Interfaces:
Serializable

public final class SubmitMethod
extends Object
implements Serializable

A collection of constants that represent the various ways a page can be submitted

Version:
$Revision: 2132 $
Author:
Mike Bowler, Ahmed Ashour, Marc Guillemot
See Also:
Serialized Form

Field Summary
static SubmitMethod DELETE
          DELETE.
static SubmitMethod GET
          GET
static SubmitMethod HEAD
          HEAD.
static SubmitMethod OPTIONS
          OPTIONS.
static SubmitMethod POST
          POST
static SubmitMethod PUT
          PUT
static SubmitMethod TRACE
          TRACE.
 
Method Summary
static SubmitMethod getInstance(String name)
          Return the constant that matches the given name (case insensitive).
 String getName()
          Return the name of this SubmitMethod
 String toString()
          Return a string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPTIONS

public static final SubmitMethod OPTIONS
OPTIONS.

See Also:
RFC2616

GET

public static final SubmitMethod GET
GET

See Also:
RFC2616

HEAD

public static final SubmitMethod HEAD
HEAD.

See Also:
RFC2616

POST

public static final SubmitMethod POST
POST

See Also:
RFC2616

PUT

public static final SubmitMethod PUT
PUT

See Also:
RFC2616

DELETE

public static final SubmitMethod DELETE
DELETE.

See Also:
RFC2616

TRACE

public static final SubmitMethod TRACE
TRACE.

See Also:
RFC2616
Method Detail

getName

public String getName()
Return the name of this SubmitMethod

Returns:
See above

getInstance

public static SubmitMethod getInstance(String name)
Return the constant that matches the given name (case insensitive).

Parameters:
name - The name to search by
Returns:
see above

toString

public String toString()
Return a string representation of this object

Overrides:
toString in class Object
Returns:
See above


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.