org.apache.abdera.protocol.server.impl
Class SimpleTarget

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.SimpleTarget
All Implemented Interfaces:
Iterable<String>, Target
Direct Known Subclasses:
RegexTargetResolver.RegexTarget, RouteManager.RouteTarget

public class SimpleTarget
extends Object
implements Target


Field Summary
protected  RequestContext context
           
protected  TargetType type
           
 
Constructor Summary
SimpleTarget(TargetType type, RequestContext context)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getIdentity()
          Return the identity of this target.
<T> T
getMatcher()
          Return the object that matches with the uri
 String getParameter(String name)
          Return the named target parameter
 String[] getParameterNames()
          Return a listing of all parameter names
 RequestContext getRequestContext()
           
 TargetType getType()
          Return the resolved Target Type
 int hashCode()
           
 Iterator<String> iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected final TargetType type

context

protected final RequestContext context
Constructor Detail

SimpleTarget

public SimpleTarget(TargetType type,
                    RequestContext context)
Method Detail

getIdentity

public String getIdentity()
Description copied from interface: Target
Return the identity of this target. Usually this will just be the request URI

Specified by:
getIdentity in interface Target

getParameter

public String getParameter(String name)
Description copied from interface: Target
Return the named target parameter

Specified by:
getParameter in interface Target

getParameterNames

public String[] getParameterNames()
Description copied from interface: Target
Return a listing of all parameter names

Specified by:
getParameterNames in interface Target

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>

getType

public TargetType getType()
Description copied from interface: Target
Return the resolved Target Type

Specified by:
getType in interface Target

getRequestContext

public RequestContext getRequestContext()

toString

public String toString()
Overrides:
toString in class Object

getMatcher

public <T> T getMatcher()
Description copied from interface: Target
Return the object that matches with the uri

Specified by:
getMatcher in interface Target
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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