org.wso2.carbon.registry.app.targets
Class ResponseTarget
java.lang.Object
org.apache.abdera.protocol.server.impl.SimpleTarget
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 |
org.apache.abdera.protocol.server.ResponseContext |
getResponse()
Method to obtain the response context. |
Methods inherited from class org.apache.abdera.protocol.server.impl.SimpleTarget |
equals, getIdentity, getMatcher, getParameter, getParameterNames, getRequestContext, getType, hashCode, iterator, toString |
RESPONSE_TYPE
public static final org.apache.abdera.protocol.server.TargetType RESPONSE_TYPE
- The type of response target.
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.
getResponse
public org.apache.abdera.protocol.server.ResponseContext getResponse()
- Method to obtain the response context.
- Returns:
- the response context.
Copyright © 2010. All Rights Reserved.