Java Doc for ParManifest.java in  » Portal » Open-Portal » com » sun » portal » desktop » deployment » 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 » Portal » Open Portal » com.sun.portal.desktop.deployment 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.jar.Manifest
      com.sun.portal.desktop.deployment.ParManifest

ParManifest
public class ParManifest extends Manifest (Code)
Specialized manifest used in .par files (portal server specialized .jar files). The .par file contains three types of files: 1 - class files 2 - XML display profile files, which use the psdp.dtd to express properties for installing providers and/or channels. 3 - other files, presumed to be "rooted" via some property name on the target server, the applicable property being part of the path in the .par file The manifest allows us to determine what the .par file contains, and unpack this stuff. This class translates between the portal server concepts, and manifest headers Most importantly, it hides the top level directory structure contained in the archive. Manifests contain "main" attribute sections, and "entry" attribute sections, which are associated with specific files in the archive. For .par files, the "entries" correspond to files of type 2 above - the DP XML files. Each file of this type should have an entry, and corresponds to a single channel and/or provider. Main attributes: .par file manifests contain specialized headers providing a version, which also serves as a sanity check that an archive is really a .par file. There are also headers which provide the names of the top level archive directories for each of the three files listed above. At most one of these may be null, indicating that those files are realized at the root of the entire archive. By default, this is done with the class files, so that the .par file may be used as a normal .jar file in class paths, and it will work. However, this class is intended to allow arbitrary assignment of the root directories for the 3 file types, provided that at most one is null, and the specified ones are distinct. Entry attributes: The entry corresponds to a particular XML describing a "relocatable" channel and/or provider. Three headers are defined for each entry: An "include" header, which defines the other files of the archive which go with this particular entry, and for which particular types of extractions (provider vs. channel) An optional "Autoextract" operation. This header describes an automatic operation which may be done with this entry of the archive. It uses the same format as would be used to specify the operation as a command line argument. Default Entry: The first entry made to the manifest will become the "default" entry, which may be accessed with a null entry name. If the .par file only contains one entry, this means that the user does not need to know an explicit entry name to access it. .par file pacakaging below the root directory class files - normal .jar file packaging, with a directory structure reflecting the java packages dp files - xml files directly under the root. prop driven files - first component is the property name used to locate the file, the rest is the file name relative to that directory. ParManifest API usage: This class provides the translation for ZipEntry's and manipulation of path information for these file types. The ZipEntry is the way in which standard .jar file API's reference contents of a jar. The caller view these files the following ways: class files - either full class name or package name + class name. prop drive files - a property name plus a path. DP XML files - a simple name, usually corresponding to the name given by the "name" attribute of the psdp:parentry tag of the XML file, though it technically doesn't have to. When the caller is building up a manifest, they call addDPEntry(), addDPEntryInclude*() and addDPEntryAutoExtract() to register the files and operations they are going to package in the .par file. When the caller is reading a .par file, they obtain the normal Manifest object, and call static makeManifest() to obtain a ParManifest, which can handle the header information appropriately. API calls allow the user to find the entry names contained in the manifest, and get the included files and automated operations defined with each entry. In all cases, the ParManifest get*Zip() methods may be used to obtain the appropriate ZipEntry structures that allow the caller to stream in and out of the archive through the normal .jar file I/O mechanisms.
author:
   yabob
version:
  


Field Summary
final public static  intCLASSFILE
    
final public static  intCONFFILE
    
final public static  StringDEF_CONFIG_STR
    
final public static  StringDEF_DP_STR
    
final public static  StringDEF_PBFILES_STR
    
final public static  StringDEF_STATIC_STR
    
final public static  StringDEF_WAR_STR
    
final public static  intDPFILE
    
final public static  intPBFILE
    
final public static  intSTATFILE
    
final public static  intWARFILE
    

Constructor Summary
public  ParManifest(String classroot, String dproot, String pbfileroot, String sroot, String wroot, String croot, String backupVersion)
    
public  ParManifest()
    
public  ParManifest(String backupVersion)
    

Method Summary
public  voidaddDPEntry(String name)
    
public  voidaddDPEntryAttrProps(String name, Set keys)
    
public  voidaddDPEntryAutoExtract(String name, ExtractOp op)
    
public  voidaddDPEntryDPDocs(String name, Set keys)
    
public  voidaddDPEntryIncludeClass(String name, String pkg, String classname, int types)
    
public  voidaddDPEntryIncludeClass(String name, String fullclassname, int types)
    
public  voidaddDPEntryIncludeConf(String name, String path, int types)
    
public  voidaddDPEntryIncludePBFile(String name, String prop, String path, int types)
    
public  voidaddDPEntryIncludeStat(String name, String path, int types)
    
public  voidaddDPEntryIncludeWar(String name, String path, int types)
    
public  voiddescribe(PrintStream out, ParFile pf)
    
public  StringdescribeAll(ParFile pf)
    
public  StringdescribeAll(ParFile pf, Map types)
    
public  StringgetBackupVersion()
    
public  ZipEntrygetClassZip(String pkg, String classname)
    
public  ZipEntrygetClassZip(String fullclassname)
    
public  ZipEntrygetConfZip(String name)
    
public  ZipEntrygetDPDocZip(String name)
    
public  VectorgetDPEntryAttrPropList(String name)
    
public  ExtractOpgetDPEntryAutoExtract(String name)
    
public  VectorgetDPEntryDPDocList(String name)
    
public  VectorgetDPEntryIncludeList(String name, int types)
    
public  voidgetDPEntryIncludeList(String name, int types, Vector v, Vector vt)
    
public  VectorgetDPEntryList()
    
public  ZipEntrygetDPZip(String name)
    
public  StringgetFullFromClassPath(String path)
    
public  ZipEntrygetPBFileZip(String prop, String path)
    
public  StringgetPathFromConfPath(String path)
    
public  StringgetPathFromPBFPath(String path)
    
public  StringgetPathFromStaticPath(String path)
    
public  StringgetPathFromWarPath(String path)
    
public  intgetPathRootType(String path)
    
public  ZipEntrygetPropertiesZip(String name)
    
public  StringgetPropertyFromPBFPath(String path)
    
public  ZipEntrygetStatZip(String path)
    
public  ZipEntrygetWarZip(String name)
    
public static  ParManifestmakeManifest(Manifest man)
    
public  voidtransferFileEntries(ParFileBuilder pfb, ParFile oldpf)
    

Field Detail
CLASSFILE
final public static int CLASSFILE(Code)



CONFFILE
final public static int CONFFILE(Code)



DEF_CONFIG_STR
final public static String DEF_CONFIG_STR(Code)



DEF_DP_STR
final public static String DEF_DP_STR(Code)



DEF_PBFILES_STR
final public static String DEF_PBFILES_STR(Code)



DEF_STATIC_STR
final public static String DEF_STATIC_STR(Code)



DEF_WAR_STR
final public static String DEF_WAR_STR(Code)



DPFILE
final public static int DPFILE(Code)



PBFILE
final public static int PBFILE(Code)



STATFILE
final public static int STATFILE(Code)



WARFILE
final public static int WARFILE(Code)




Constructor Detail
ParManifest
public ParManifest(String classroot, String dproot, String pbfileroot, String sroot, String wroot, String croot, String backupVersion)(Code)



ParManifest
public ParManifest()(Code)



ParManifest
public ParManifest(String backupVersion)(Code)




Method Detail
addDPEntry
public void addDPEntry(String name) throws ParFileException(Code)



addDPEntryAttrProps
public void addDPEntryAttrProps(String name, Set keys) throws ParFileException(Code)



addDPEntryAutoExtract
public void addDPEntryAutoExtract(String name, ExtractOp op) throws ParFileException(Code)



addDPEntryDPDocs
public void addDPEntryDPDocs(String name, Set keys) throws ParFileException(Code)



addDPEntryIncludeClass
public void addDPEntryIncludeClass(String name, String pkg, String classname, int types) throws ParFileException(Code)



addDPEntryIncludeClass
public void addDPEntryIncludeClass(String name, String fullclassname, int types) throws ParFileException(Code)



addDPEntryIncludeConf
public void addDPEntryIncludeConf(String name, String path, int types) throws ParFileException(Code)



addDPEntryIncludePBFile
public void addDPEntryIncludePBFile(String name, String prop, String path, int types) throws ParFileException(Code)



addDPEntryIncludeStat
public void addDPEntryIncludeStat(String name, String path, int types) throws ParFileException(Code)



addDPEntryIncludeWar
public void addDPEntryIncludeWar(String name, String path, int types) throws ParFileException(Code)



describe
public void describe(PrintStream out, ParFile pf) throws ParFileException(Code)



describeAll
public String describeAll(ParFile pf) throws ParFileException(Code)



describeAll
public String describeAll(ParFile pf, Map types) throws ParFileException(Code)



getBackupVersion
public String getBackupVersion()(Code)



getClassZip
public ZipEntry getClassZip(String pkg, String classname)(Code)



getClassZip
public ZipEntry getClassZip(String fullclassname)(Code)



getConfZip
public ZipEntry getConfZip(String name) throws ParFileException(Code)



getDPDocZip
public ZipEntry getDPDocZip(String name) throws ParFileException(Code)



getDPEntryAttrPropList
public Vector getDPEntryAttrPropList(String name) throws ParFileException(Code)



getDPEntryAutoExtract
public ExtractOp getDPEntryAutoExtract(String name) throws ParFileException(Code)



getDPEntryDPDocList
public Vector getDPEntryDPDocList(String name) throws ParFileException(Code)



getDPEntryIncludeList
public Vector getDPEntryIncludeList(String name, int types) throws ParFileException(Code)



getDPEntryIncludeList
public void getDPEntryIncludeList(String name, int types, Vector v, Vector vt) throws ParFileException(Code)



getDPEntryList
public Vector getDPEntryList() throws ParFileException(Code)



getDPZip
public ZipEntry getDPZip(String name) throws ParFileException(Code)



getFullFromClassPath
public String getFullFromClassPath(String path) throws ParFileException(Code)



getPBFileZip
public ZipEntry getPBFileZip(String prop, String path)(Code)



getPathFromConfPath
public String getPathFromConfPath(String path) throws ParFileException(Code)



getPathFromPBFPath
public String getPathFromPBFPath(String path) throws ParFileException(Code)



getPathFromStaticPath
public String getPathFromStaticPath(String path) throws ParFileException(Code)



getPathFromWarPath
public String getPathFromWarPath(String path) throws ParFileException(Code)



getPathRootType
public int getPathRootType(String path) throws ParFileException(Code)



getPropertiesZip
public ZipEntry getPropertiesZip(String name) throws ParFileException(Code)



getPropertyFromPBFPath
public String getPropertyFromPBFPath(String path) throws ParFileException(Code)



getStatZip
public ZipEntry getStatZip(String path)(Code)



getWarZip
public ZipEntry getWarZip(String name) throws ParFileException(Code)



makeManifest
public static ParManifest makeManifest(Manifest man) throws ParFileException(Code)



transferFileEntries
public void transferFileEntries(ParFileBuilder pfb, ParFile oldpf) throws ParFileException(Code)



Methods inherited from java.util.jar.Manifest
public void clear()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public Attributes getAttributes(String name)(Code)(Java Doc)
public Map<String, Attributes> getEntries()(Code)(Java Doc)
public Attributes getMainAttributes()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void read(InputStream is) throws IOException(Code)(Java Doc)
public void write(OutputStream out) throws IOException(Code)(Java Doc)

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.