Java Doc for HttpInstaller.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » installer » 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.installer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.midp.installer.Installer
      com.sun.midp.installer.HttpInstaller

HttpInstaller
public class HttpInstaller extends Installer (Code)
An Installer allowing to install a midlet suite from an http server. If the midlet suite is given by a descriptor file, the jar URL specified in the descriptor must have an "http" or "https" scheme.



Constructor Summary
public  HttpInstaller()
     Constructor of the HttpInstaller.

Method Summary
protected  byte[]downloadJAD()
     Downloads an application descriptor file from the given URL.
protected  intdownloadJAR(String filename)
     Downloads an application archive file from the given URL into the given file.
protected  booleanisSameUrl(String url1, String url2)
     Compares two URLs for equality in sense that they have the same scheme, host and path.
public  booleanstopInstalling()
     Stops the installation.


Constructor Detail
HttpInstaller
public HttpInstaller()(Code)
Constructor of the HttpInstaller.




Method Detail
downloadJAD
protected byte[] downloadJAD() throws IOException(Code)
Downloads an application descriptor file from the given URL. a byte array representation of the file or null if not found
exception:
  IOException - is thrown if any error prevents the downloadof the JAD



downloadJAR
protected int downloadJAR(String filename) throws IOException(Code)
Downloads an application archive file from the given URL into the given file. Automatically handle re-tries.
Parameters:
  filename - name of the file to write. This file residesin the storage area of the given application size of the JAR
exception:
  IOException - is thrown if any error prevents the downloadof the JAR



isSameUrl
protected boolean isSameUrl(String url1, String url2)(Code)
Compares two URLs for equality in sense that they have the same scheme, host and path.
Parameters:
  url1 - the first URL for comparision
Parameters:
  url1 - the second URL for comparision true if the scheme, host and path of the first given urlis identical to the scheme, host and path of the secondgiven url; false otherwise



stopInstalling
public boolean stopInstalling()(Code)
Stops the installation. If installer is not installing then this method has no effect. This will cause the install method to throw an IOException if the install is not writing the suite to storage which is the point of no return. true if the install will stop, false if it is too late



Fields inherited from com.sun.midp.installer.Installer
final public static int CORRUPTED_SUITE(Code)(Java Doc)
final public static int DOWNLOADED_1K_OF_JAD(Code)(Java Doc)
final public static int DOWNLOADED_1K_OF_JAR(Code)(Java Doc)
final public static int DOWNLOADING_JAD(Code)(Java Doc)
final public static int DOWNLOADING_JAR(Code)(Java Doc)
final public static int GENERATING_APP_IMAGE(Code)(Java Doc)
final public static String JAD_MT(Code)(Java Doc)
final public static String JAR_MT_1(Code)(Java Doc)
final public static String JAR_MT_2(Code)(Java Doc)
final protected static String MICROEDITION_CONFIG(Code)(Java Doc)
final protected static String MICROEDITION_LOCALE(Code)(Java Doc)
final protected static String MICROEDITION_PROFILES(Code)(Java Doc)
final public static int STORING_SUITE(Code)(Java Doc)
final protected static String TMP_FILENAME(Code)(Java Doc)
final public static int VERIFYING_SUITE(Code)(Java Doc)
final public static int VERIFYING_SUITE_CLASSES(Code)(Java Doc)
protected String additionalPermissions(Code)(Java Doc)
protected String cldcConfig(Code)(Java Doc)
final protected String cldcRuntimeEnv(Code)(Java Doc)
protected InstallInfo info(Code)(Java Doc)
protected SuiteSettings settings(Code)(Java Doc)
protected InstallStateImpl state(Code)(Java Doc)
protected String unsignedSecurityDomain(Code)(Java Doc)
protected Verifier verifier(Code)(Java Doc)

Methods inherited from com.sun.midp.installer.Installer
protected void checkForDifferentDomains(String url)(Code)(Java Doc)
protected void checkForJadManifestMismatches() throws InvalidJadException(Code)(Java Doc)
protected void checkPreviousVersion() throws InvalidJadException, MIDletSuiteLockedException(Code)(Java Doc)
abstract protected byte[] downloadJAD() throws IOException(Code)(Java Doc)
abstract protected int downloadJAR(String filename) throws IOException(Code)(Java Doc)
protected byte[] getInitialPermissions(String domain) throws InvalidJadException(Code)(Java Doc)
protected InstallStateImpl getInstallState()(Code)(Java Doc)
public static String getUrlPath(String url)(Code)(Java Doc)
public static String getUrlScheme(String url, String defaultScheme)(Code)(Java Doc)
public int installJad(String location, int storageId, boolean force, boolean removeRMS, InstallListener installListener) throws IOException, InvalidJadException, MIDletSuiteLockedException, SecurityException(Code)(Java Doc)
public int installJar(String location, String name, int storageId, boolean force, boolean removeRMS, InstallListener installListener) throws IOException, InvalidJadException, MIDletSuiteLockedException(Code)(Java Doc)
public boolean isJadSigned()(Code)(Java Doc)
abstract protected boolean isSameUrl(String url1, String url2)(Code)(Java Doc)
protected int performInstall() throws IOException, InvalidJadException, MIDletSuiteLockedException(Code)(Java Doc)
protected void postInstallMsgBackToProvider(String message)(Code)(Java Doc)
protected void processPreviousRMS() throws IOException(Code)(Java Doc)
public void setExtraPermissions(String extraPermissions)(Code)(Java Doc)
public void setUnsignedSecurityDomain(String domain)(Code)(Java Doc)
public boolean stopInstalling()(Code)(Java Doc)
protected int transferData(InputStream in, OutputStream out, int chunkSize) throws IOException(Code)(Java Doc)
public void verifyMIDlet(String classname) throws InvalidJadException(Code)(Java Doc)
public boolean wasStopped()(Code)(Java Doc)

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.