01: /**
02: * $Id: WSRPProviderConstants.java,v 1.3 2004/01/07 23:54:43 mjain Exp $
03: * Copyright 2003 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.wsrp.consumer.common;
14:
15: /**
16: * These keys must be set as the channel keys in the provider context
17: * by the caller of WSRPConsumer.
18: * As an example, these keys are set
19: * by the admin when a WSRP channel is created
20: * If I think more, this is a missing piece
21: * in the container interface architecture.
22: * Each container needs certain information for
23: * working from its client. What is the place to specify
24: * this contract in the container framework.
25: * For example, where is the format of getEntityID()
26: * specified for JSR168 container.
27: *
28: */
29:
30: public interface WSRPProviderConstants {
31:
32: /**
33: * ID of the producer entity a channel is configured to.
34: */
35: public static final String PRODUCER_ENTITY_ID = "producerEntityID";
36:
37: /**
38: * Id of the remote portlet that channel is configured to.
39: */
40: public static final String PORTLET_ID = "portletID";
41:
42: /**
43: * Id of the consumer to which the producer entity configured
44: * belongs to.
45: */
46: public static final String CONSUMER_ID = "consumerID";
47:
48: /**
49: * Handle returned by the producer to associate this channel
50: * on the producer side. By default and to start with, it is
51: * same as PORTLET_ID.
52: */
53: public static final String PORTLET_HANDLE = "portletHandle";
54:
55: /**
56: * State returned by the producer to be associated with this channel
57: * on the producer side. By default and to start with, it is
58: * null.
59: */
60: public static final String PORTLET_STATE = "portletState";
61:
62: /**
63: * Name of the WSRP Provider
64: */
65: public static final String WSRP_PROVIDER = "_WSRPProvider";
66:
67: /**
68: * Part of conspiracy.
69: */
70:
71: public static final String PROVIDER_CONTEXT = "provider_context";
72:
73: }
|