org.wso2.carbon.registry.app.targets
Class ResourceTarget
java.lang.Object
org.apache.abdera.protocol.server.impl.SimpleTarget
org.wso2.carbon.registry.app.targets.ResourceTarget
- All Implemented Interfaces:
- Iterable<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
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. |
Methods inherited from class org.apache.abdera.protocol.server.impl.SimpleTarget |
getIdentity, getMatcher, getParameter, getParameterNames, getRequestContext, getType, iterator, toString |
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.
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(Object obj)
-
- Overrides:
equals
in class org.apache.abdera.protocol.server.impl.SimpleTarget
Copyright © 2014 WSO2 Inc. All Rights Reserved.