|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.datapower.wamt.amp.Utilities
public class Utilities
This class provides utilities which can be used for parsing information needed
by the other classes in this package. More information can be found in each
method javadoc below. The get*Firmware*
methods parse the
headers of a firmware file to extract metadata.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT_2009_2013
|
Method Summary | |
---|---|
static DeviceType |
getFirmwareDeviceType(Blob firmwareImage)
Get the deviceType that this firmware image is for. |
static java.lang.String |
getFirmwareLevel(Blob firmwareImage)
Get the manufacturer's level (i.e., "3.5.0.9") that is embedded in a firmware file. |
static java.util.Date |
getFirmwareManufactureDate(Blob firmwareImage)
Get the manufacturer's build date that is embedded in a firmware file. |
static ModelType |
getFirmwareModelType(Blob firmwareImage)
Get the modelType that this firmware image is for. |
static java.lang.String |
getFirmwareScryptVersion(Blob firmwareImage)
Get the scrypt version of this firmware file. |
static java.lang.String |
getLocalIPAddress(java.lang.String ipInterface)
|
static StringCollection |
getNonStrictFirmwareFeatures(Blob firmwareImage)
Get the list of non-strict features (libraries) that are included in this firmware image. |
static java.lang.String |
getRepositoryDirectory()
Get WAMT repository directory |
static StringCollection |
getStrictFirmwareFeatures(Blob firmwareImage)
Get the list of strict features (libraries) that are included in this firmware image. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT_2009_2013
Method Detail |
---|
public static java.lang.String getFirmwareScryptVersion(Blob firmwareImage) throws java.io.IOException, AMPException
firmwareImage
- a reference to the firmware file blob
"2.0"
public static java.lang.String getFirmwareLevel(Blob firmwareImage) throws java.io.IOException, AMPException
firmwareImage
- a reference to the firmware file blob
3.5.0.9
public static java.util.Date getFirmwareManufactureDate(Blob firmwareImage) throws java.io.IOException
firmwareImage
- a reference to the firmware file blob
public static DeviceType getFirmwareDeviceType(Blob firmwareImage) throws java.io.IOException, AMPException
firmwareImage
- a reference to the firmware file blob
Firmware.isCompatibleWith(com.ibm.datapower.wamt.clientAPI.Device)
public static ModelType getFirmwareModelType(Blob firmwareImage) throws java.io.IOException, AMPException
firmwareImage
- a reference to the firmware file blob
Firmware.isCompatibleWith(com.ibm.datapower.wamt.clientAPI.Device)
public static StringCollection getStrictFirmwareFeatures(Blob firmwareImage) throws java.io.IOException, AMPException
firmwareImage
- a reference to the firmware file blob
Firmware.isCompatibleWith(com.ibm.datapower.wamt.clientAPI.Device)
public static StringCollection getNonStrictFirmwareFeatures(Blob firmwareImage) throws java.io.IOException, AMPException
firmwareImage
- a reference to the firmware file blob
Firmware.isCompatibleWith(com.ibm.datapower.wamt.clientAPI.Device)
public static java.lang.String getLocalIPAddress(java.lang.String ipInterface) throws java.net.SocketException
public static java.lang.String getRepositoryDirectory()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |