Cumulus4j API
(1.1.0)

org.cumulus4j.keymanager.back.shared
Class NullResponse

java.lang.Object
  extended by org.cumulus4j.keymanager.back.shared.Message
      extended by org.cumulus4j.keymanager.back.shared.Response
          extended by 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.
 
Method Summary
 
Methods inherited from class org.cumulus4j.keymanager.back.shared.Response
toString
 
Methods inherited from class org.cumulus4j.keymanager.back.shared.Message
equals, getRequestID, hashCode, setRequestID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.