|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.webconsole.internal.Util
public class Util
The Util
TODO
Field Summary | |
---|---|
static String |
PAGE_LOGS
Logs subpage |
static String |
PAGE_VM_STAT
vm statistics subpage |
static String |
PAGE_WEBAPPS
web apps subpage |
static String |
PARAM_ACTION
Parameter name |
static String |
PARAM_CONTENT
Parameter name |
static String |
PARAM_SHUTDOWN
Parameter name |
static String |
VALUE_SHUTDOWN
Parameter value |
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static void |
endScript(PrintWriter pw)
|
static String |
getName(Bundle bundle)
Return a display name for the given bundle :
If the bundle has a non-empty Bundle-Name manifest
header that value is returned.
Otherwise the symbolic name is returned if set
Otherwise the bundle's location is returned if defined
Finally, as a last ressort, the bundles id is returned
|
static void |
script(PrintWriter pw,
String appRoot,
String scriptName)
|
static void |
sort(Bundle[] bundles)
Orders the bundles according to their name as returned by getName(Bundle) , with the exception that the system bundle is
always place as the first entry. |
static void |
spool(String res,
HttpServletResponse resp)
|
static void |
startScript(PrintWriter pw)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PAGE_WEBAPPS
public static final String PAGE_VM_STAT
public static final String PAGE_LOGS
public static final String PARAM_ACTION
public static final String PARAM_CONTENT
public static final String PARAM_SHUTDOWN
public static final String VALUE_SHUTDOWN
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static void startScript(PrintWriter pw)
public static void endScript(PrintWriter pw)
public static void script(PrintWriter pw, String appRoot, String scriptName)
public static void spool(String res, HttpServletResponse resp) throws IOException
IOException
public static String getName(Bundle bundle)
bundle
:
Bundle-Name
manifest
header that value is returned.
public static void sort(Bundle[] bundles)
getName(Bundle)
, with the exception that the system bundle is
always place as the first entry. If two bundles have the same name, they
are ordered according to their version. If they have the same version,
the bundle with the lower bundle id comes before the other.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |