PageRenderTime 800ms CodeModel.GetById 31ms RepoModel.GetById 9ms app.codeStats 0ms

/gwtrpccommlayer/src/main/java/com/googlecode/gwtrpccommlayer/shared/GwtRpcCommLayerPojoResponse.java

https://code.google.com/p/gwtrpccommlayer/
Java | 52 lines | 18 code | 7 blank | 27 comment | 0 complexity | edffb36791c87d57b934a0ab9ac6ad26 MD5 | raw file
  1. /*
  2. * Copyright 2010 Jeff McHugh (Segue Development LLC)
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  5. * in compliance with the License. You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software distributed under the License
  10. * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  11. * or implied. See the License for the specific language governing permissions and limitations under
  12. * the License.
  13. */
  14. package com.googlecode.gwtrpccommlayer.shared;
  15. import java.io.Serializable;
  16. /**
  17. * Abstracts the Response sent to the GwtRpcCommLayer-Client
  18. * @author jeff mchugh
  19. *
  20. */
  21. public class GwtRpcCommLayerPojoResponse implements Serializable
  22. {
  23. /**
  24. *
  25. */
  26. private static final long serialVersionUID = 5989840998465395318L;
  27. private Serializable responseInstance;
  28. public GwtRpcCommLayerPojoResponse()
  29. {
  30. }
  31. /**
  32. * @param responseInstance the responseInstance to set
  33. */
  34. public void setResponseInstance(Serializable responseInstance)
  35. {
  36. this.responseInstance = responseInstance;
  37. }
  38. /**
  39. * @return the responseInstance
  40. */
  41. public <T> Serializable getResponseInstance()
  42. {
  43. return responseInstance;
  44. }
  45. }