1. /*
  2. * @(#)RequestHandler.java 1.20 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.internal.core;
  8. import com.sun.corba.se.internal.ior.ObjectKey;
  9. /**
  10. * A RequestHandler is responsible for finding the appropriate
  11. * server subcontracts to dispatch the incoming request to. There
  12. * exists one RequestDispatcher for a GIOPServer.
  13. */
  14. public interface RequestHandler {
  15. /**
  16. * Process this request and return the response.
  17. */
  18. public ServerResponse process(ServerRequest request)
  19. throws Throwable;
  20. /**
  21. * Process a locate request.
  22. */
  23. public IOR locate(ObjectKey key);
  24. }