PK
Z#9 META-INF/ PK Xd9ub j META-INF/MANIFEST.MFMʱE0Im*Ć`XcYrT;h#EER֭O{x h#Ϊ?f4L$;_qchRPK
~8 org/PK
~8 org/w3c/PK
~8 org/w3c/ddr/PK
Z#9 org/w3c/ddr/simple/PK
Z#9зA ! org/w3c/ddr/simple/Evidence.class 1
put '(Ljava/lang/String;Ljava/lang/String;)V exists (Ljava/lang/String;)Z get &(Ljava/lang/String;)Ljava/lang/String; org/w3c/ddr/simple/Evidence java/lang/Object PK
R8A
A
org/w3c/ddr/simple/Evidence.javapackage org.w3c.ddr.simple;
/**
* An interface representing evidence that is to be supplied to getPropertyValue
* or getPropertyValues methods of {@link Service}.
* The purpose of Evidence is to represent available information with which to identify the delivery context.
* In accordance with the minimum requirements of the DDR Simple API, this interface can support the
* representation of evidence as HTTP headers.
* Consumers of HTTP evidence must support case-insensitive field names as per RFC 2616 section 4.2.
*
* @author Jo Rabin (dotMobi)
* @author
Jose Manuel Cantera Fonseca (Telefonica I+D)
* @author
Rotan Hanrahan (MobileAware)
* @author
Ignacio Marin (Fundacion CTIC)
* Copyright
* © 2008 W3C®
* (MIT,
* ERCIM,
* Keio), All Rights Reserved.
* W3C liability,
* trademark
* and document use rules apply.
*
* @see Service#newHTTPEvidence()
*/
public interface Evidence {
/**
* Add a key / value pair to the collection of evidence.
* Any value put into evidence via this method can be retrieved via a corresponding call to get(key).
*
* @param key The key that identifies an element of the evidence.
* @param value The value of the identified element.
*/
public void put(String key, String value);
/**
* True if a value for the specified key exists.
*
* @param key The unique key that identifies an element of the evidence.
* @return The value 'true' if the identified element has a value that can be retrieved, and 'false' otherwise.
*/
public boolean exists(String key);
/**
* Get the value corresponding to the key.
* For a particular key K, if there was a previous call to put(K,value) then
* the value returned by get(K) will be the most recent value used in put(K,value).
*
* @param key The key that identifies an element of the evidence.
* @return The value of the element identified by the key.
*/
public String get(String key);
}
PK
R8 org/w3c/ddr/simple/exception/PK
Z#9f/ / org/w3c/ddr/simple/exception/DDRException.class 1 &
! " # IMPLEMENTATION_ERROR I serialVersionUID J
ConstantValue$UVo& code ()V Code (ILjava/lang/String;)V (ILjava/lang/Throwable;)V getCode ()I
getMessage ()Ljava/lang/String; $ %
)org/w3c/ddr/simple/exception/DDRException java/lang/Exception (Ljava/lang/String;)V (Ljava/lang/Throwable;)V !
* *, * *, * * * PK
R8uڎ' ' . org/w3c/ddr/simple/exception/DDRException.javapackage org.w3c.ddr.simple.exception;
/**
* Represents a DDR Exception.
*
* @author Jo Rabin (dotMobi)
* @author
Jose Manuel Cantera Fonseca (Telefonica I+D)
* @author
Rotan Hanrahan (MobileAware)
* @author
Ignacio Marin (Fundacion CTIC)
* Copyright
* © 2008 W3C®
* (MIT,
* ERCIM,
* Keio), All Rights Reserved.
* W3C liability,
* trademark
* and document use rules apply.
*
*/
public class DDRException extends Exception {
/**
* Implementation specific error codes must be greater than this
*/
public static int IMPLEMENTATION_ERROR = 65536;
/**
* Constructs a DDRException instance with an undefined exception code.
*/
public DDRException() {
super();
}
/**
* Constructs a DDRException instance with a code and human-readable message.
*
* @param code This should be a constant from this exception class.
* @param message Diagnostic message intended for human reading.
*/
public DDRException(int code, String message) {
super(message);
this.code = code;
}
/**
* Constructs a DDRException instance with a code and Throwable object that
* may indicate further details of the cause of the exception.
*
* @param code This should be a constant from this exception class.
* @param thr A Throwable object that may contain further details on the exception.
*/
public DDRException(int code, Throwable thr) {
super(thr);
this.code = code;
}
/**
* This is a Java-specific version management feature to deal with serialisation and deserialisation of class instances.
*/
static final long serialVersionUID = 2618094065573111548L; // Generated by serialver.exe
/**
* Retrieves the exception code, which determines the nature/cause of the exception.
*
* @return Explanatory code.
*/
public int getCode() {
return code;
}
/**
* Retrieves a human-readable diagnostic message, intended for error messages.
*
* @return Human-readable diagnostic message.
*/
@Override
public String getMessage() {
return super.getMessage();
}
/**
* An exception code, which represents the nature/cause of the exception.
*/
protected int code;
}
PK
Z#9OG~ : org/w3c/ddr/simple/exception/InitializationException.class 1
INITIALIZATION_ERROR I ()V Code (ILjava/lang/String;)V (ILjava/lang/Throwable;)V
4org/w3c/ddr/simple/exception/InitializationException )org/w3c/ddr/simple/exception/DDRException !
* *,
*,
, PK
R8[
9 org/w3c/ddr/simple/exception/InitializationException.javapackage org.w3c.ddr.simple.exception;
/**
* This exception represents a failure of the DDR system.
*
* @author Jo Rabin (dotMobi)
* @author
Jose Manuel Cantera Fonseca (Telefonica I+D)
* @author
Rotan Hanrahan (MobileAware)
* @author
Ignacio Marin (Fundacion CTIC)
Copyright
* © 2008 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
* W3C liability,
* trademark
* and document
* use rules apply.
*/
public class InitializationException extends DDRException {
/**
* Code for 'General Initialization Error'. This exception code indicates
* that there was a problem during initialization.
*/
public static int INITIALIZATION_ERROR = 300;
/**
* Constructs an InitializationException instance with a default exception
* code.
*/
public InitializationException() {
super();
}
/**
* Constructs an InitializationException instance with a code and
* human-readable diagnostic message.
*
* @param code
* This should be an implementation-specific code identifying the
* cause of the exception.
* @param message
* Diagnostic message intended for human reading.
*/
public InitializationException(int code, String message) {
super(code, message);
}
/**
* Constructs an InitializationException instance with a code and Throwable
* object that may indicate further details of the cause of the exception.
*
* @param code
* This should be an implementation-specific code identifying the
* cause of the exception.
* @param thr
* A Throwable object that may contain further details on the
* exception.
*/
public InitializationException(int code, Throwable thr) {
super(code, thr);
}
}
PK
Z#9x8 0 org/w3c/ddr/simple/exception/NameException.class 1
PROPERTY_NOT_RECOGNIZED I VOCABULARY_NOT_RECOGNIZED ASPECT_NOT_RECOGNIZED ()V Code (ILjava/lang/String;)V (ILjava/lang/Throwable;)V
*org/w3c/ddr/simple/exception/NameException )org/w3c/ddr/simple/exception/DDRException !
*
*,
*, d ȳ PK
R8B& / org/w3c/ddr/simple/exception/NameException.javapackage org.w3c.ddr.simple.exception;
/**
* This exception is thrown when an attempt is made to access a Property or Aspect when the
* name or vocabulary IRI is in error.
* The exception code, when set, indicates the nature of the error.
*
* @author Jo Rabin (dotMobi)
* @author
Jose Manuel Cantera Fonseca (Telefonica I+D)
* @author
Rotan Hanrahan (MobileAware)
* @author
Ignacio Marin (Fundacion CTIC)
* Copyright
* © 2008 W3C®
* (MIT,
* ERCIM,
* Keio), All Rights Reserved.
* W3C liability,
* trademark
* and document use rules apply.
*/
public class NameException extends DDRException {
/**
* Code for 'Property not recognized'.
* This exception code indicates that a given Property does not exist in the given vocabulary or is not syntactically correct.
*/
public static int PROPERTY_NOT_RECOGNIZED = 100;
/**
* Code for 'Vocabulary not recognized'.
* This exception code indicates that the vocabulary of a given Property is not known or is not syntactically correct.
*/
public static int VOCABULARY_NOT_RECOGNIZED = 200;
/**
* Code for 'Aspect not recognized'.
* This exception code indicates that the Aspect is not known or is not syntactically correct.
* It is assumed in the Simple DDR API that the vocabulary of an Aspect derives
* from the vocabulary of the Property to which it is applied.
*/
public static int ASPECT_NOT_RECOGNIZED = 800;
/**
* Constructs a NameException instance with default exception code.
*/
public NameException() {
super();
}
/**
* Constructs a NameException instance with a code and human-readable message.
*
* @param code This should be a constant from this exception class.
* @param message Diagnostic message intended for human reading.
*/
public NameException(int code, String message) {
super(code, message);
}
/**
* Constructs a NameException instance with a code and an instance of Throwable,
* which may contain additional information pertaining to the cause of the exception.
*
* @param code This should be a constant from this exception class.
* @param thr A Throwable object that may contain further details on the exception.
*/
public NameException(int code, Throwable thr) {
super(code, thr);
}
}
PK
u8x\/t t 2 org/w3c/ddr/simple/exception/SystemException.class 1 '
! " # $ ILLEGAL_ARGUMENT I CANNOT_PROCEED code ()V Code LineNumberTable LocalVariableTable this .Lorg/w3c/ddr/simple/exception/SystemException; (ILjava/lang/String;)V message Ljava/lang/String; (ILjava/lang/Throwable;)V thr Ljava/lang/Throwable;
SourceFile SystemException.java
%
&
,org/w3c/ddr/simple/exception/SystemException java/lang/RuntimeException (Ljava/lang/String;)V (Ljava/lang/Throwable;)V !
3 *
% &