View Javadoc

1   /**
2    *  MicroEmulator
3    *  Copyright (C) 2006-2007 Bartek Teodorczyk <barteo@barteo.net>
4    *  Copyright (C) 2006-2007 Vlad Skarzhevskyy
5    *
6    *  It is licensed under the following two licenses as alternatives:
7    *    1. GNU Lesser General Public License (the "LGPL") version 2.1 or any newer version
8    *    2. Apache License (the "AL") Version 2.0
9    *
10   *  You may not use this file except in compliance with at least one of
11   *  the above two licenses.
12   *
13   *  You may obtain a copy of the LGPL at
14   *      http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
15   *
16   *  You may obtain a copy of the AL at
17   *      http://www.apache.org/licenses/LICENSE-2.0
18   *
19   *  Unless required by applicable law or agreed to in writing, software
20   *  distributed under the License is distributed on an "AS IS" BASIS,
21   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22   *  See the LGPL or the AL for the specific language governing permissions and
23   *  limitations.
24   *
25   *  @version $Id: PushRegistryImpl.java 1605 2008-02-25 21:07:14Z barteo $
26   */
27  package org.microemu.microedition.io;
28  
29  import java.io.IOException;
30  
31  import javax.microedition.io.ConnectionNotFoundException;
32  
33  /**
34   * 
35   * Default empty implemenation
36   * 
37   * @author vlads
38   */
39  
40  public class PushRegistryImpl implements PushRegistryDelegate {
41  
42  	public String getFilter(String connection) {
43  		// TODO Auto-generated method stub
44  		return null;
45  	}
46  
47  	public String getMIDlet(String connection) {
48  		// TODO Auto-generated method stub
49  		return null;
50  	}
51  
52  	public String[] listConnections(boolean available) {
53  		// TODO Auto-generated method stub
54  		return new String[0];
55  	}
56  
57  	public long registerAlarm(String midlet, long time) throws ClassNotFoundException, ConnectionNotFoundException {
58  		// TODO Auto-generated method stub
59  		throw new ConnectionNotFoundException();
60  	}
61  
62  	public void registerConnection(String connection, String midlet, String filter) throws ClassNotFoundException,
63  			IOException {
64  		// TODO Auto-generated method stub
65  
66  	}
67  
68  	public boolean unregisterConnection(String connection) {
69  		// TODO Auto-generated method stub
70  		return false;
71  	}
72  
73  }