org.wso2.carbon.registry.app.targets
Class ResourceTarget

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.SimpleTarget
      extended by org.wso2.carbon.registry.app.targets.ResourceTarget
All Implemented Interfaces:
java.lang.Iterable<java.lang.String>, org.apache.abdera.protocol.server.Target

public class ResourceTarget
extends org.apache.abdera.protocol.server.impl.SimpleTarget

This is a target for a registry resource


Field Summary
 
Fields inherited from class org.apache.abdera.protocol.server.impl.SimpleTarget
context, type
 
Constructor Summary
ResourceTarget(org.apache.abdera.protocol.server.TargetType type, org.apache.abdera.protocol.server.RequestContext context, Resource resource)
          Creates a resource target.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 Resource getResource()
          Method to obtain a resource.
 int hashCode()
          
 
Methods inherited from class org.apache.abdera.protocol.server.impl.SimpleTarget
getIdentity, getMatcher, getParameter, getParameterNames, getRequestContext, getType, iterator, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceTarget

public ResourceTarget(org.apache.abdera.protocol.server.TargetType type,
                      org.apache.abdera.protocol.server.RequestContext context,
                      Resource resource)
Creates a resource target.

Parameters:
type - the target type.
context - the request context.
resource - the resource.
Method Detail

getResource

public Resource getResource()
Method to obtain a resource.

Returns:
the resource.

hashCode

public int hashCode()

Overrides:
hashCode in class org.apache.abdera.protocol.server.impl.SimpleTarget

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class org.apache.abdera.protocol.server.impl.SimpleTarget


Copyright © 2011 WSO2 Inc. All Rights Reserved.