01: /*
02: * Copyright 2000-2001,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.wsrp4j.consumer.driver;
18:
19: import oasis.names.tc.wsrp.v1.types.MarkupContext;
20:
21: import org.apache.wsrp4j.consumer.PortletSession;
22: import org.apache.wsrp4j.consumer.PortletWindowSession;
23:
24: public class GenericPortletWindowSessionImpl implements
25: PortletWindowSession {
26: // the markup context we store between performBlockingInteraction and getMarkup calls
27: private transient MarkupContext markupCtx = null;
28:
29: // the window ID identifying this session
30: private String windowID = null;
31:
32: // the refering PortletSession
33: private PortletSession pSession = null;
34:
35: public GenericPortletWindowSessionImpl(String windowID,
36: PortletSession pSession) {
37: this .windowID = windowID;
38: this .pSession = pSession;
39: }
40:
41: public PortletSession getPortletSession() {
42: return this .pSession;
43: }
44:
45: public String getWindowID() {
46: return windowID;
47: }
48:
49: public void setWindowID(String windowID) {
50: this .windowID = windowID;
51: }
52:
53: public MarkupContext getCachedMarkup() {
54: return markupCtx;
55: }
56:
57: public void updateMarkupCache(MarkupContext markupContext) {
58: markupCtx = markupContext;
59: }
60: }
|