Cumulus4j API

Class NullResponse

  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:

public class NullResponse
extends Response

Response implementation not containing any data and symbolising Java's null value.

Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de
See Also:
Serialized Form

Constructor Summary
          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
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


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.


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 (, Request) never returns a NullResponse instance; instead it returns null).

request - the request that is answered by this new NullResponse instance.

Cumulus4j API

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.