Java Doc for PushRegistryInternal.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » io » j2me » push » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.midp.io.j2me.push 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.midp.io.j2me.push.PushRegistryInternal

PushRegistryInternal
final public class PushRegistryInternal (Code)
Stubbed implementation for NAMS variant of CLDC stack


Field Summary
final public static  intPUSH_OPT_WHEN_ONLY_APP
     Push option to only launch this suite when not other applications are running.


Method Summary
public static  booleancheckInConnectionInternal(SecurityToken token, String connection)
     Check in a push connection into AMS so the owning MIDlet can get launched next time data is pushed.
public static  voidenablePushLaunch(boolean enable)
     Sets the flag which enables push launches to take place.
public static  voidinitSecurityToken(SecurityToken token)
     Initializes the security token for this class, so it can perform actions that a normal MIDlet Suite cannot.
public static  StringlistConnections(int id, boolean available)
     Return a list of registered connections for given MIDlet suite.
public static  voidregisterConnectionInternal(MIDletSuite midletSuite, String connection, String midlet, String filter, boolean bypassChecks)
     Register a dynamic connection with the application management software.
public static  voidsetMvmSingleMidletMode()
     Sets the flag which indicates that the AMS is operating in MVM single MIDlet mode.
public static  voidstartListening()
     Start listening for push notifications.
public static  voidunregisterConnections(int id)
     Unregister all the connections for a MIDlet suite.

Field Detail
PUSH_OPT_WHEN_ONLY_APP
final public static int PUSH_OPT_WHEN_ONLY_APP(Code)
Push option to only launch this suite when not other applications are running.





Method Detail
checkInConnectionInternal
public static boolean checkInConnectionInternal(SecurityToken token, String connection)(Code)
Check in a push connection into AMS so the owning MIDlet can get launched next time data is pushed. This method is used when a MIDlet will not be able to get the connection and close (check in) the connection for some reason. (normally because the user denied a permission)

For datagram connections this function will discard the cached message.

For server socket connections this function will close the accepted connection.
Parameters:
  token - security token of the calling class
Parameters:
  connection - generic connection protocol, hostand port number(optional parameters may be includedseparated with semi-colons (;))
exception:
  IllegalArgumentException - if the connection string is notvalid
exception:
  SecurityException - if the MIDlet does nothave permission to clear a connection true if the check in was successful,false the connection was not registered.
See Also:   PushRegistryInternal.unregisterConnection




enablePushLaunch
public static void enablePushLaunch(boolean enable)(Code)
Sets the flag which enables push launches to take place.
Parameters:
  enable - set to true to enable launchingof MIDlets based on alarms and connection notificationevents, otherwise set to false to disablelaunches



initSecurityToken
public static void initSecurityToken(SecurityToken token)(Code)
Initializes the security token for this class, so it can perform actions that a normal MIDlet Suite cannot.
Parameters:
  token - security token for this class.



listConnections
public static String listConnections(int id, boolean available)(Code)
Return a list of registered connections for given MIDlet suite.
Parameters:
  id - identifies the specific MIDletsuite to be launched
Parameters:
  available - if true, only return the list ofconnections with input available string representing an array of connection strings,where each connection is represented by the generic connectionprotocol, host and port numberidentification



registerConnectionInternal
public static void registerConnectionInternal(MIDletSuite midletSuite, String connection, String midlet, String filter, boolean bypassChecks) throws ClassNotFoundException, IOException(Code)
Register a dynamic connection with the application management software. Once registered, the dynamic connection acts just like a connection preallocated from the descriptor file. The internal implementation includes the storage name that uniquely identifies the MIDlet. This method bypasses the class loader specific checks needed by the Installer.
Parameters:
  midletSuite - MIDlet suite for the suite registering,the suite only has to implement isRegistered,checkForPermission, and getID.
Parameters:
  connection - generic connection protocol, hostand port number(optional parameters may be includedseparated with semi-colons (;))
Parameters:
  midlet - class name of the MIDlet to be launched,when new external data is available
Parameters:
  filter - a connection URL string indicating which sendersare allowed to cause the MIDlet to be launched
Parameters:
  bypassChecks - if true, bypass the permission checks,used by the installer when redo old connections during anaborted update
exception:
  IllegalArgumentException - if the connection string is notvalid
exception:
  ConnectionNotFoundException - if the runtime system does notsupport push delivery for the requestedconnection protocol
exception:
  IOException - if the connection is alreadyregistered or if there are insufficient resourcesto handle the registration request
exception:
  ClassNotFoundException - if the MIDlet classname can not be found in the currentMIDlet suite
exception:
  SecurityException - if the MIDlet does nothave permission to register a connection
See Also:   PushRegistryInternal.unregisterConnection



setMvmSingleMidletMode
public static void setMvmSingleMidletMode()(Code)
Sets the flag which indicates that the AMS is operating in MVM single MIDlet mode.



startListening
public static void startListening()(Code)
Start listening for push notifications. Will throw a security exception if called by any thing other than the MIDletSuiteLoader.



unregisterConnections
public static void unregisterConnections(int id)(Code)
Unregister all the connections for a MIDlet suite.
Parameters:
  id - identifies the specific MIDletsuite



Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.