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

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

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

A Target which contains a ready-made ResponseContext. The RegistryAdapter just notices this and returns the contained ResponseContext immediately.


Field Summary
static org.apache.abdera.protocol.server.TargetType RESPONSE_TYPE
          The type of response target.
 
Fields inherited from class org.apache.abdera.protocol.server.impl.SimpleTarget
context, type
 
Constructor Summary
ResponseTarget(org.apache.abdera.protocol.server.RequestContext context, org.apache.abdera.protocol.server.ResponseContext response)
          Creates a response target.
 
Method Summary
 boolean equals(Object obj)
          
 org.apache.abdera.protocol.server.ResponseContext getResponse()
          Method to obtain the response context.
 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
 

Field Detail

RESPONSE_TYPE

public static final org.apache.abdera.protocol.server.TargetType RESPONSE_TYPE
The type of response target.

Constructor Detail

ResponseTarget

public ResponseTarget(org.apache.abdera.protocol.server.RequestContext context,
                      org.apache.abdera.protocol.server.ResponseContext response)
Creates a response target.

Parameters:
context - the request context.
response - the response context.
Method Detail

getResponse

public org.apache.abdera.protocol.server.ResponseContext getResponse()
Method to obtain the response context.

Returns:
the response context.

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.