Class JarArchiver
java.lang.Object
org.eclipse.persistence.tools.dbws.JarArchiver
- All Implemented Interfaces:
DBWSPackager.Archiver
- Direct Known Subclasses:
WarArchiver
INTERNAL: JarArchiver implements the DBWSPackager.Archiver
interface.
This helper class takes the files generated by a DBWSPackager and puts them into an archive,
in this case, a .jar
file.
Jar-file layout \ | eclipselink-dbws-schema.xsd | swaref.xsd -- optional if attachements are enabled \---META-INF | eclipselink-dbws-or.xml | eclipselink-dbws-ox.xml | eclipselink-dbws-sessions.xml | eclipselink-dbws.xml
- Since:
- EclipseLink 1.x
-
Field Summary
Modifier and TypeFieldDescriptionprotected byte[]
protected File
protected FileInputStream
protected String
protected JarOutputStream
protected DBWSPackager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFilesToJarOutputStream
(JarOutputStream jarOutputStream) void
archive()
protected JarOutputStream
protected Manifest
protected JarEntry
protected JarEntry
protected JarEntry
protected JarEntry
protected JarEntry
protected JarEntry
void
setFilename
(String jarFilename) void
setPackager
(DBWSPackager packager)
-
Field Details
-
packager
-
jarFilename
-
jarOutputStream
-
f
-
fis
-
buffer
protected byte[] buffer
-
-
Constructor Details
-
JarArchiver
public JarArchiver() -
JarArchiver
-
-
Method Details
-
getPackager
- Specified by:
getPackager
in interfaceDBWSPackager.Archiver
-
setPackager
- Specified by:
setPackager
in interfaceDBWSPackager.Archiver
-
getFilename
- Specified by:
getFilename
in interfaceDBWSPackager.Archiver
-
setFilename
- Specified by:
setFilename
in interfaceDBWSPackager.Archiver
-
archive
public void archive()- Specified by:
archive
in interfaceDBWSPackager.Archiver
-
buildManifest
-
buildJarOutputStream
-
getSchemaJarEntry
-
getSWARefJarEntry
-
getOrJarEntry
-
getOxJarEntry
-
getSessionsJarEntry
-
getServiceJarEntry
-
addFilesToJarOutputStream
-
getOrProjectPathPrefix
- Specified by:
getOrProjectPathPrefix
in interfaceDBWSPackager.Archiver
-
getOxProjectPathPrefix
- Specified by:
getOxProjectPathPrefix
in interfaceDBWSPackager.Archiver
-
getWSDLPathPrefix
- Specified by:
getWSDLPathPrefix
in interfaceDBWSPackager.Archiver
-