org.cumulus4j.keymanager.back.shared
Class NullResponse
java.lang.Object
org.cumulus4j.keymanager.back.shared.Message
org.cumulus4j.keymanager.back.shared.Response
org.cumulus4j.keymanager.back.shared.NullResponse
- All Implemented Interfaces:
- Serializable
public class NullResponse
- extends Response
Response
implementation not containing any data and symbolising Java's null
value.
- Author:
- Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de
- See Also:
- Serialized Form
Constructor Summary |
NullResponse()
Create a NullResponse without a prior request. |
NullResponse(Request request)
Create a NullResponse as answer to a prior request. |
Methods inherited from class org.cumulus4j.keymanager.back.shared.Response |
toString |
NullResponse
public NullResponse()
- Create a
NullResponse
without a prior request. This is just used as filler
without being forwarded to any requester. It circumvents the problem that Jersey has a problem
when a REST service (aka resource) method expecting an entity should be called without one.
NullResponse
public NullResponse(Request request)
- Create a
NullResponse
as answer to a prior request. It is
processed like any other response, i.e. forwarded to the requester, but finally
translated to null
(org.cumulus4j.store.crypto.keymanager.messagebroker.MessageBroker.query(Class, Request)
never returns a NullResponse
instance; instead it returns null
).
- Parameters:
request
- the request that is answered by this new NullResponse
instance.
Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.