org.apache.abdera.protocol.server.impl
Class RegexTargetResolver.RegexTarget

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.SimpleTarget
      extended by org.apache.abdera.protocol.server.impl.RegexTargetResolver.RegexTarget
All Implemented Interfaces:
Iterable<String>, Target
Enclosing class:
RegexTargetResolver

public static class RegexTargetResolver.RegexTarget
extends SimpleTarget
implements Target


Field Summary
protected  String[] fields
           
protected  Matcher matcher
           
 
Fields inherited from class org.apache.abdera.protocol.server.impl.SimpleTarget
context, type
 
Constructor Summary
RegexTargetResolver.RegexTarget(TargetType type, RequestContext context, Matcher matcher, String[] fields)
           
 
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
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.apache.abdera.protocol.server.impl.SimpleTarget
getRequestContext, getType, iterator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.protocol.server.Target
getType
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

matcher

protected Matcher matcher

fields

protected String[] fields
Constructor Detail

RegexTargetResolver.RegexTarget

public RegexTargetResolver.RegexTarget(TargetType type,
                                       RequestContext context,
                                       Matcher matcher,
                                       String[] fields)
Method Detail

getParameter

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

Specified by:
getParameter in interface Target
Overrides:
getParameter in class SimpleTarget

getParameterNames

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

Specified by:
getParameterNames in interface Target
Overrides:
getParameterNames in class SimpleTarget

getMatcher

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

Specified by:
getMatcher in interface Target
Overrides:
getMatcher in class SimpleTarget
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class SimpleTarget

equals

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

toString

public String toString()
Overrides:
toString in class SimpleTarget

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
Overrides:
getIdentity in class SimpleTarget


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