|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.zip.ZipFile java.util.jar.JarFile org.apache.maven.j2ee.WarFile org.apache.maven.struts.Struts10WarFile
public class Struts10WarFile
Encapsulates a Struts 1.0 War File. Holds functionality to access Struts specific resources and data in the war.
Field Summary | |
---|---|
static int |
CENATT
|
static int |
CENATX
|
static int |
CENCOM
|
static int |
CENCRC
|
static int |
CENDSK
|
static int |
CENEXT
|
static int |
CENFLG
|
static int |
CENHDR
|
static int |
CENHOW
|
static int |
CENLEN
|
static int |
CENNAM
|
static int |
CENOFF
|
static long |
CENSIG
|
static int |
CENSIZ
|
static int |
CENTIM
|
static int |
CENVEM
|
static int |
CENVER
|
static String |
DEFAULT_ACTIONSERVLET_NAME
Default name of the action servlet in web.xml |
static String |
DEFAULT_CONFIG
Default location of Struts configuration file in the war |
static int |
ENDCOM
|
static int |
ENDHDR
|
static int |
ENDOFF
|
static long |
ENDSIG
|
static int |
ENDSIZ
|
static int |
ENDSUB
|
static int |
ENDTOT
|
static int |
EXTCRC
|
static int |
EXTHDR
|
static int |
EXTLEN
|
static long |
EXTSIG
|
static int |
EXTSIZ
|
static int |
LOCCRC
|
static int |
LOCEXT
|
static int |
LOCFLG
|
static int |
LOCHDR
|
static int |
LOCHOW
|
static int |
LOCLEN
|
static int |
LOCNAM
|
static long |
LOCSIG
|
static int |
LOCSIZ
|
static int |
LOCTIM
|
static int |
LOCVER
|
Fields inherited from class org.apache.maven.j2ee.WarFile |
---|
LIB, WEB_XML |
Fields inherited from class java.util.jar.JarFile |
---|
MANIFEST_NAME |
Fields inherited from class java.util.zip.ZipFile |
---|
OPEN_DELETE, OPEN_READ |
Constructor Summary | |
---|---|
Struts10WarFile(File warFile)
Creates a new instance of Struts10WarFile |
|
Struts10WarFile(File warFile,
boolean verify)
Creates a new instance of Struts10WarFile |
|
Struts10WarFile(File warFile,
boolean verify,
int mode)
Creates a new instance of Struts10WarFile |
|
Struts10WarFile(String name)
Creates a new instance of Struts10WarFile |
|
Struts10WarFile(String name,
boolean verify)
Creates a new instance of Struts10WarFile |
Method Summary | |
---|---|
List |
getActions()
retrieve the actions defined in the struts configuration file |
String |
getActionServletName()
Getter for property actionServletName. |
String |
getActionServletPattern()
retrieve the url pattern for the action servlet, or null if not found |
String |
getConfig()
Provide the location of the Struts configuration file in the war. |
List |
getFormBeans()
retrieves the form beans defined in the struts configuration file |
String |
getFormBeansType()
retrieves the type attribute of the <form-beans> element if it exists, or null otherwise |
List |
getForwards()
retrieve the global forwards defined in the struts configuration |
String |
getGlobalForwardsType()
retrieves the type attribute of the <global-forwards> element if it exists, or null otherwise |
JarEntry |
getStrutsConfigEntry()
Retrieves the Struts configuration (as specified by the config property) entry if it exists. |
void |
setActionServletName(String actionServletName)
Setter for property actionServletName. |
void |
setConfig(String config)
Set the location of the Struts configuration file in the war. |
Methods inherited from class org.apache.maven.j2ee.WarFile |
---|
extract, getErrorPages, getFormLoginConfig, getJSPs, getLibEntries, getServletMappings, getServlets, getTaglibs, getWebXml, getWebXmlEntry, hasFile |
Methods inherited from class java.util.jar.JarFile |
---|
entries, getEntry, getInputStream, getJarEntry, getManifest |
Methods inherited from class java.util.zip.ZipFile |
---|
close, finalize, getName, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_CONFIG
public static final String DEFAULT_ACTIONSERVLET_NAME
public static final long LOCSIG
public static final long EXTSIG
public static final long CENSIG
public static final long ENDSIG
public static final int LOCHDR
public static final int EXTHDR
public static final int CENHDR
public static final int ENDHDR
public static final int LOCVER
public static final int LOCFLG
public static final int LOCHOW
public static final int LOCTIM
public static final int LOCCRC
public static final int LOCSIZ
public static final int LOCLEN
public static final int LOCNAM
public static final int LOCEXT
public static final int EXTCRC
public static final int EXTSIZ
public static final int EXTLEN
public static final int CENVEM
public static final int CENVER
public static final int CENFLG
public static final int CENHOW
public static final int CENTIM
public static final int CENCRC
public static final int CENSIZ
public static final int CENLEN
public static final int CENNAM
public static final int CENEXT
public static final int CENCOM
public static final int CENDSK
public static final int CENATT
public static final int CENATX
public static final int CENOFF
public static final int ENDSUB
public static final int ENDTOT
public static final int ENDSIZ
public static final int ENDOFF
public static final int ENDCOM
Constructor Detail |
---|
public Struts10WarFile(String name) throws IOException
name
- the file
name of a war file containing a Struts
web application
IOException
- when an I/O error occurspublic Struts10WarFile(String name, boolean verify) throws IOException
name
- the file
name of a war file containing a Struts
web applicationverify
- whether or not to verify the war file if it is signed
IOException
- when an I/O error occurspublic Struts10WarFile(File warFile) throws IOException
warFile
- a J2EE .war file
containing a Struts web
application
IOException
- when an I/O error occurspublic Struts10WarFile(File warFile, boolean verify) throws IOException
warFile
- a J2EE .war file
containing a Struts web
applicationverify
- whether or not to verify the war file if it is signed
IOException
- when an I/O error occurspublic Struts10WarFile(File warFile, boolean verify, int mode) throws IOException
warFile
- a J2EE .war file
containing a Struts web
applicationverify
- whether or not to verify the war file if it is signedmode
- the mode in which the file is to be opened
IOException
- when an I/O error occursMethod Detail |
---|
public String getConfig()
public void setConfig(String config)
config
- New value of property config.public JarEntry getStrutsConfigEntry()
JarEntry
for Struts configpublic List getFormBeans() throws IOException
form beans
IOException
- when there are problems reading from the warpublic List getActions() throws IOException
IOException
- when there are problems reading from the warpublic String getFormBeansType() throws IOException
IOException
- when there are problems reading from the warpublic String getGlobalForwardsType() throws IOException
IOException
- when there are problems reading from the warpublic List getForwards() throws IOException
List
of forwards
IOException
- when there are problems reading from the warpublic String getActionServletPattern() throws IOException
getActionServletName()
IOException
- when there are problems reading from the warpublic String getActionServletName()
public void setActionServletName(String actionServletName)
actionServletName
- New value of property actionServletName.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |