org.eclipse.webdav.dom
Class Status

java.lang.Object
  extended by org.eclipse.webdav.dom.Status

public class Status
extends Object

A Status parses an http status string.

Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Constructor Summary
Status(String status)
          Creates a new status from the given http status string.
 
Method Summary
 int getStatusCode()
          Returns this status' status code.
 String getStatusMessage()
          Returns this status' status message; for example, if the http status string was "HTTP/1.1 200 OK", the status message would be "OK".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Status

public Status(String status)
       throws MalformedElementException
Creates a new status from the given http status string.

Parameters:
status - the http status string; for example, "HTTP/1.1 200 OK"
Throws:
MalformedElementException - if the given status is malformed
Method Detail

getStatusCode

public int getStatusCode()
Returns this status' status code. For example, if the http status string was "HTTP/1.1 200 OK", the status code would be 200.

Returns:
this status' status code
See Also:
Response

getStatusMessage

public String getStatusMessage()
Returns this status' status message; for example, if the http status string was "HTTP/1.1 200 OK", the status message would be "OK".

Returns:
this status' status message


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.