01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.search.rdmserver;
07:
08: import com.sun.portal.search.rdm.*;
09: import java.util.*;
10:
11: /**
12: * Each RDM service defines which combinations of type and query
13: * language it handles. Requests are routed based on this.
14: */
15: public abstract class RDMService {
16:
17: // We could support service dependencies and enable/disable
18:
19: Set supportedServices = new HashSet();
20:
21: /** @return Set of RDMServiceDescriptor objects, one for each supported RDMType/QL pair */
22: public Set getSupportedServices() {
23: return supportedServices;
24: }
25:
26: /** Service an RDM request */
27: public abstract void service(RDMRequest req, RDMResponse res)
28: throws Exception;
29:
30: /** Called to shutdown a service */
31: public void shutdown() throws Exception {
32: }
33:
34: }
|