|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 package javax.microedition.io; |
|
20 |
|
21 import java.lang.ClassNotFoundException; |
|
22 import javax.microedition.io.ConnectionNotFoundException; |
|
23 import java.io.IOException; |
|
24 |
|
25 import com.nokia.mj.impl.push.PushRegistryImpl; |
|
26 |
|
27 public class PushRegistry |
|
28 { |
|
29 private PushRegistry() {} |
|
30 |
|
31 public static String getFilter(String aURI) |
|
32 { |
|
33 return PushRegistryImpl.getFilter(aURI); |
|
34 } |
|
35 |
|
36 public static String getMIDlet(String aURI) |
|
37 { |
|
38 return PushRegistryImpl.getMIDlet(aURI); |
|
39 } |
|
40 |
|
41 public static String[] listConnections(boolean aAvailable) |
|
42 { |
|
43 return PushRegistryImpl.listConnections(aAvailable); |
|
44 } |
|
45 |
|
46 public static long registerAlarm(String aMIDletClassName, long aTime) |
|
47 throws ClassNotFoundException,ConnectionNotFoundException |
|
48 { |
|
49 return PushRegistryImpl.registerAlarm(aMIDletClassName,aTime); |
|
50 } |
|
51 |
|
52 public static void registerConnection(String aConnection, String aMIDletClassName, String aFilter) |
|
53 throws ClassNotFoundException,java.io.IOException |
|
54 { |
|
55 PushRegistryImpl.registerConnection(aConnection,aMIDletClassName,aFilter); |
|
56 } |
|
57 |
|
58 public static boolean unregisterConnection(String aConnection) |
|
59 { |
|
60 return PushRegistryImpl.unregisterConnection(aConnection); |
|
61 } |
|
62 } |
|
63 |