Java Doc for WebRepositoryAccessor.java in  » Installer » IzPack » com » izforge » izpack » 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 » Installer » IzPack » com.izforge.izpack.installer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.izforge.izpack.installer.WebRepositoryAccessor

WebRepositoryAccessor
public class WebRepositoryAccessor (Code)
This class enumerates the availabe packs at the web repository. Parses the config files - install.xml, packsinfo.xml, langpacks and is used to override the static configuration in the installer jar.
author:
   Vladimir Ralev
version:
   $Revision: 1.1 $



Constructor Summary
public  WebRepositoryAccessor(String urlbase)
     Create a new WebRepositoryAccessor.

Method Summary
public static  StringgetCachedUrl(String url, String tempFolder)
     First download the jar file.
public  ArrayList<PackInfo>getOnlinePacks()
    
protected  ArrayList<PackInfo>loadPacksList(XMLElement data)
    
protected  voidparseError(String message)
     Create parse error with consistent messages.
protected  voidparseError(XMLElement parent, String message)
     Create parse error with consistent messages.
protected  voidparseError(XMLElement parent, String message, Throwable cause)
     Create a chained parse error with consistent messages.
protected  voidparseWarn(XMLElement parent, String message)
     Create a parse warning with consistent messages.
protected  StringrequireAttribute(XMLElement element, String attribute)
     Call getAttribute on an element, producing a meaningful error message if not present, or empty.
protected  XMLElementrequireChildNamed(XMLElement parent, String name)
     Call getFirstChildNamed on the parent, producing a meaningful error message on failure.
protected  StringrequireContent(XMLElement element)
     Call getContent on an element, producing a meaningful error message if not present, or empty.
protected  intrequireIntAttribute(XMLElement element, String attribute)
     Get a required attribute of an element, ensuring it is an integer.
protected  URLrequireURLContent(XMLElement element)
     Call getContent on an element, producing a meaningful error message if not present, or empty, or a valid URL.
protected  booleanrequireYesNoAttribute(XMLElement element, String attribute)
     Call getAttribute on an element, producing a meaningful error message if not present, or one of "yes" or "no".
protected  booleanvalidateYesNoAttribute(XMLElement element, String attribute, boolean defaultValue)
     Call getAttribute on an element, producing a meaningful warning if not "yes" or "no".


Constructor Detail
WebRepositoryAccessor
public WebRepositoryAccessor(String urlbase)(Code)
Create a new WebRepositoryAccessor.
Parameters:
  urlbase -




Method Detail
getCachedUrl
public static String getCachedUrl(String url, String tempFolder) throws Exception(Code)
First download the jar file. The create the input stream from the downloaded file. This is because the Jar connection's openInputStream will blocks until the whole jar in order to unzip it (there is no way to see the download progress there).
Parameters:
  url - the url



getOnlinePacks
public ArrayList<PackInfo> getOnlinePacks()(Code)
Get the list of the packs from the remore install.xml the packs list



loadPacksList
protected ArrayList<PackInfo> loadPacksList(XMLElement data) throws CompilerException(Code)



parseError
protected void parseError(String message) throws CompilerException(Code)
Create parse error with consistent messages. Includes file name. For use When parent is unknown.
Parameters:
  message - Brief message explaining error



parseError
protected void parseError(XMLElement parent, String message) throws CompilerException(Code)
Create parse error with consistent messages. Includes file name and line # of parent. It is an error for 'parent' to be null.
Parameters:
  parent - The element in which the error occured
Parameters:
  message - Brief message explaining error



parseError
protected void parseError(XMLElement parent, String message, Throwable cause) throws CompilerException(Code)
Create a chained parse error with consistent messages. Includes file name and line # of parent. It is an error for 'parent' to be null.
Parameters:
  parent - The element in which the error occured
Parameters:
  message - Brief message explaining error



parseWarn
protected void parseWarn(XMLElement parent, String message)(Code)
Create a parse warning with consistent messages. Includes file name and line # of parent. It is an error for 'parent' to be null.
Parameters:
  parent - The element in which the warning occured
Parameters:
  message - Warning message



requireAttribute
protected String requireAttribute(XMLElement element, String attribute) throws CompilerException(Code)
Call getAttribute on an element, producing a meaningful error message if not present, or empty. It is an error for 'element' or 'attribute' to be null.
Parameters:
  element - The element to get the attribute value of
Parameters:
  attribute - The name of the attribute to get



requireChildNamed
protected XMLElement requireChildNamed(XMLElement parent, String name) throws CompilerException(Code)
Call getFirstChildNamed on the parent, producing a meaningful error message on failure. It is an error for 'parent' to be null.
Parameters:
  parent - The element to search for a child
Parameters:
  name - Name of the child element to get



requireContent
protected String requireContent(XMLElement element) throws CompilerException(Code)
Call getContent on an element, producing a meaningful error message if not present, or empty. It is an error for 'element' to be null.
Parameters:
  element - The element to get content of



requireIntAttribute
protected int requireIntAttribute(XMLElement element, String attribute) throws CompilerException(Code)
Get a required attribute of an element, ensuring it is an integer. A meaningful error message is generated as a CompilerException if not present or parseable as an int. It is an error for 'element' or 'attribute' to be null.
Parameters:
  element - The element to get the attribute value of
Parameters:
  attribute - The name of the attribute to get



requireURLContent
protected URL requireURLContent(XMLElement element) throws CompilerException(Code)
Call getContent on an element, producing a meaningful error message if not present, or empty, or a valid URL. It is an error for 'element' to be null.
Parameters:
  element - The element to get content of



requireYesNoAttribute
protected boolean requireYesNoAttribute(XMLElement element, String attribute) throws CompilerException(Code)
Call getAttribute on an element, producing a meaningful error message if not present, or one of "yes" or "no". It is an error for 'element' or 'attribute' to be null.
Parameters:
  element - The element to get the attribute value of
Parameters:
  attribute - The name of the attribute to get



validateYesNoAttribute
protected boolean validateYesNoAttribute(XMLElement element, String attribute, boolean defaultValue)(Code)
Call getAttribute on an element, producing a meaningful warning if not "yes" or "no". If the 'element' or 'attribute' are null, the default value is returned.
Parameters:
  element - The element to get the attribute value of
Parameters:
  attribute - The name of the attribute to get
Parameters:
  defaultValue - Value returned if attribute not present or invalid



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.