1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
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  package org.portletbridge.mock;
17  
18  import java.net.URI;
19  import java.util.regex.Pattern;
20  
21  import javax.portlet.PortletPreferences;
22  import javax.portlet.RenderRequest;
23  
24  import org.apache.commons.httpclient.HttpState;
25  import org.portletbridge.ResourceException;
26  import org.portletbridge.portlet.PerPortletMemento;
27  import org.portletbridge.portlet.PortletBridgeContent;
28  import org.portletbridge.portlet.SerializeableHttpState;
29  
30  /***
31   * @author JMcCrindle
32   */
33  public class MockPerPortletMemento implements PerPortletMemento {
34  
35      /***
36       * 
37       */
38      public MockPerPortletMemento() {
39          super();
40      }
41  
42      /* (non-Javadoc)
43       * @see org.portletbridge.portlet.PerPortletMemento#setPreferences(javax.portlet.PortletPreferences)
44       */
45      public void setPreferences(PortletPreferences preferences)
46              throws ResourceException {
47          // TODO Auto-generated method stub
48  
49      }
50  
51      /* (non-Javadoc)
52       * @see org.portletbridge.portlet.PerPortletMemento#getScope()
53       */
54      public Pattern getScope() {
55          // TODO Auto-generated method stub
56          return null;
57      }
58  
59      /* (non-Javadoc)
60       * @see org.portletbridge.portlet.PerPortletMemento#getInitUrl()
61       */
62      public URI getInitUrl() {
63          // TODO Auto-generated method stub
64          return null;
65      }
66  
67      /* (non-Javadoc)
68       * @see org.portletbridge.portlet.HttpClientState#getProxyHost()
69       */
70      public String getProxyHost() {
71          // TODO Auto-generated method stub
72          return null;
73      }
74  
75      /* (non-Javadoc)
76       * @see org.portletbridge.portlet.HttpClientState#getProxyPort()
77       */
78      public int getProxyPort() {
79          // TODO Auto-generated method stub
80          return 0;
81      }
82  
83      /* (non-Javadoc)
84       * @see org.portletbridge.portlet.PerPortletMemento#enqueueContent(java.lang.String, org.portletbridge.portlet.PortletBridgeContent)
85       */
86      public void enqueueContent(String bridgeRequestId, PortletBridgeContent content) {
87          // TODO Auto-generated method stub
88          
89      }
90  
91      /* (non-Javadoc)
92       * @see org.portletbridge.portlet.PerPortletMemento#dequeueContent(java.lang.String)
93       */
94      public PortletBridgeContent dequeueContent(String bridgeRequestId) {
95          // TODO Auto-generated method stub
96          return null;
97      }
98  
99      public void setPreferences(RenderRequest request) throws ResourceException {
100         // TODO Auto-generated method stub
101         
102     }
103 
104     public SerializeableHttpState getHttpState() {
105         // TODO Auto-generated method stub
106         return null;
107     }
108 
109 }