package example;

import com.caucho.burlap.server.BurlapServlet;

public class BurlapMathService extends BurlapServlet {
  /**
   * Adds two integers.
   */
  public int add(int a, int b)
  {
    return a + b;
  }
  
  /**
   * Subtracts two integers.
   */
  public int sub(int a, int b)
  {
    return a - b;
  }
  
  /**
   * Multiplies two integers.
   */
  public int mul(int a, int b)
  {
    return a * b;
  }
  
  /**
   * Divides two integers.
   */
  public int div(int a, int b)
  {
    return a / b;
  }
}
