org.apache.abdera.protocol.server
Class TargetType

java.lang.Object
  extended by org.apache.abdera.protocol.server.TargetType

public final class TargetType
extends Object

Identifies the type of resource being requests.


Field Summary
static String CATEGORIES
           
static String COLLECTION
           
static String ENTRY
           
static String MEDIA
           
static String NOT_FOUND
           
static String SERVICE
           
static TargetType TYPE_CATEGORIES
          An Atompub Categories Document
static TargetType TYPE_COLLECTION
          An Atom Feed Document representing an Atompub Collection
static TargetType TYPE_ENTRY
          An Atompub Collection member entry
static TargetType TYPE_MEDIA
          An Atompub Collection media resource
static TargetType TYPE_NOT_FOUND
          A not found target type
static TargetType TYPE_SERVICE
          An Atompub Service Document
static TargetType TYPE_UNKNOWN
          An unknown target type
static String UNKNOWN
           
 
Method Summary
 boolean equals(Object obj)
           
static TargetType get(String name)
          Get the specified target type
static TargetType get(String name, boolean create)
          Get the specified target type.
 int hashCode()
           
 String name()
          Return the target name
 String toString()
           
static Iterable<TargetType> values()
          Return a listing of TargetTypes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final String UNKNOWN
See Also:
Constant Field Values

NOT_FOUND

public static final String NOT_FOUND
See Also:
Constant Field Values

SERVICE

public static final String SERVICE
See Also:
Constant Field Values

COLLECTION

public static final String COLLECTION
See Also:
Constant Field Values

ENTRY

public static final String ENTRY
See Also:
Constant Field Values

MEDIA

public static final String MEDIA
See Also:
Constant Field Values

CATEGORIES

public static final String CATEGORIES
See Also:
Constant Field Values

TYPE_UNKNOWN

public static final TargetType TYPE_UNKNOWN
An unknown target type


TYPE_NOT_FOUND

public static final TargetType TYPE_NOT_FOUND
A not found target type


TYPE_SERVICE

public static final TargetType TYPE_SERVICE
An Atompub Service Document


TYPE_COLLECTION

public static final TargetType TYPE_COLLECTION
An Atom Feed Document representing an Atompub Collection


TYPE_ENTRY

public static final TargetType TYPE_ENTRY
An Atompub Collection member entry


TYPE_MEDIA

public static final TargetType TYPE_MEDIA
An Atompub Collection media resource


TYPE_CATEGORIES

public static final TargetType TYPE_CATEGORIES
An Atompub Categories Document

Method Detail

values

public static Iterable<TargetType> values()
Return a listing of TargetTypes


get

public static TargetType get(String name)
Get the specified target type


get

public static TargetType get(String name,
                             boolean create)
Get the specified target type. If the target type does not currently exist, and create = true, a new type will be created.


name

public String name()
Return the target name


toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.