com.sapportals.wcm.util.http

Class HttpStatus

java.lang.Object
  extended by com.sapportals.wcm.util.http.HttpStatus

public class HttpStatus
extends Object

WDStatus represents a HTTP conform status line with protocol, status code and optional description.

Copyright (c) SAP AG 2001-2002


Constructor Summary
HttpStatus()
          Construct a new empty status
HttpStatus(String statusLine)
          Construct a new status from the given line
 
Method Summary
 int getCode()
           
static int getCode(String line)
          Return code from a HTTP status line
 String getDescription()
           
 String getProtocol()
           
 void parse(String line)
          Reinitialize the WDStatus from the given line
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpStatus

public HttpStatus()
Construct a new empty status


HttpStatus

public HttpStatus(String statusLine)
           throws WcmException
Construct a new status from the given line

Parameters:
statusLine - TBD: Description of the incoming method parameter
Throws:
WcmException - Exception raised in failure situation
Method Detail

getCode

public static int getCode(String line)
                   throws WcmException
Return code from a HTTP status line

Parameters:
line - TBD: Description of the incoming method parameter
Returns:
code
Throws:
WcmException - Exception raised in failure situation

getProtocol

public String getProtocol()
Returns:
the protocol string

getCode

public int getCode()
Returns:
the status code

getDescription

public String getDescription()
Returns:
the status description or null if missing

toString

public String toString()
Overrides:
toString in class Object

parse

public void parse(String line)
           throws WcmException
Reinitialize the WDStatus from the given line

Parameters:
line - TBD: Description of the incoming method parameter
Throws:
WcmException - Exception raised in failure situation
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice