org.openrdf.sesame.repository.remote
Class HTTPErrorType

java.lang.Object
  extended byorg.openrdf.util.Enumeration
      extended byorg.openrdf.sesame.repository.remote.HTTPErrorType
All Implemented Interfaces:
Serializable

public final class HTTPErrorType
extends Enumeration

A type-safe enumeration class for HTTP error types. Each error type has a unique string value that is transfered over HTTP as a prefix for an error message. The following is an example HTTP header indicating that an unknown repository has been specified.

HTTP/1.1 400 UNKNOWN_REPOSITORY: repository 'testdb' not found

Version:
$Revision: 1.2.4.2 $
Author:
Arjohn Kampman
See Also:
Serialized Form

Field Summary
static HTTPErrorType MALFORMED_QUERY
          Constant indicating that a malformed query has been specified.
static HTTPErrorType QUERY_EVALUATION_ERROR
          Constant indicating that a error occured during the evaluation of a query.
static HTTPErrorType UNKNOWN_REPOSITORY
          Constant indicating that an unknown repository was specified.
 
Method Summary
static HTTPErrorType forValue(String value)
          Returns an HTTPErrorType constant for the specified value.
 
Methods inherited from class org.openrdf.util.Enumeration
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_REPOSITORY

public static final HTTPErrorType UNKNOWN_REPOSITORY
Constant indicating that an unknown repository was specified.


MALFORMED_QUERY

public static final HTTPErrorType MALFORMED_QUERY
Constant indicating that a malformed query has been specified.


QUERY_EVALUATION_ERROR

public static final HTTPErrorType QUERY_EVALUATION_ERROR
Constant indicating that a error occured during the evaluation of a query.

Method Detail

forValue

public static HTTPErrorType forValue(String value)
Returns an HTTPErrorType constant for the specified value.

Parameters:
value - The String-representation of an HTTPErrorType constant.
Returns:
An HTTPErrorType object, or null if the specified value could not be resolved to an HTTPErrorType object.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.