View Javadoc

1   /**
2    *  MicroEmulator
3    *  Copyright (C) 2006-2007 Bartek Teodorczyk <barteo@barteo.net>
4    *  Copyright (C) 2006-2007 Vlad Skarzhevskyy
5    *
6    *  This library is free software; you can redistribute it and/or
7    *  modify it under the terms of the GNU Lesser General Public
8    *  License as published by the Free Software Foundation; either
9    *  version 2.1 of the License, or (at your option) any later version.
10   *
11   *  This library is distributed in the hope that it will be useful,
12   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   *  Lesser General Public License for more details.
15   *
16   *  You should have received a copy of the GNU Lesser General Public
17   *  License along with this library; if not, write to the Free Software
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19   *
20   *  @version $Id: PushRegistryImpl.java 1051 2007-02-27 20:39:25Z vlads $
21   */
22  package org.microemu.microedition.io;
23  
24  import java.io.IOException;
25  
26  import javax.microedition.io.ConnectionNotFoundException;
27  
28  /**
29   * 
30   * Default empty implemenation
31   * 
32   * @author vlads
33   */
34  
35  public class PushRegistryImpl implements PushRegistryDelegate {
36  
37  	public String getFilter(String connection) {
38  		// TODO Auto-generated method stub
39  		return null;
40  	}
41  
42  	public String getMIDlet(String connection) {
43  		// TODO Auto-generated method stub
44  		return null;
45  	}
46  
47  	public String[] listConnections(boolean available) {
48  		// TODO Auto-generated method stub
49  		return new String[0];
50  	}
51  
52  	public long registerAlarm(String midlet, long time) throws ClassNotFoundException, ConnectionNotFoundException {
53  		// TODO Auto-generated method stub
54  		throw new ConnectionNotFoundException();
55  	}
56  
57  	public void registerConnection(String connection, String midlet, String filter) throws ClassNotFoundException,
58  			IOException {
59  		// TODO Auto-generated method stub
60  
61  	}
62  
63  	public boolean unregisterConnection(String connection) {
64  		// TODO Auto-generated method stub
65  		return false;
66  	}
67  
68  }