Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

RpcManager.java 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright 2011 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.server;
  17. import java.io.Serializable;
  18. /**
  19. * Server side RPC manager that can invoke methods based on RPC calls received
  20. * from the client.
  21. *
  22. * @since 7.0
  23. */
  24. public interface RpcManager extends Serializable {
  25. public void applyInvocation(ServerRpcMethodInvocation invocation)
  26. throws RpcInvocationException;
  27. /**
  28. * Wrapper exception for exceptions which occur during invocation of an RPC
  29. * call
  30. *
  31. * @author Vaadin Ltd
  32. * @since 7.0
  33. *
  34. */
  35. public static class RpcInvocationException extends Exception {
  36. public RpcInvocationException() {
  37. super();
  38. }
  39. public RpcInvocationException(String message, Throwable cause) {
  40. super(message, cause);
  41. }
  42. public RpcInvocationException(String message) {
  43. super(message);
  44. }
  45. public RpcInvocationException(Throwable cause) {
  46. super(cause);
  47. }
  48. }
  49. }