|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.bea.p13n.management.inventory.tool.appresident.servlet.InventoryManagmentServlet
The InventoryManagmentServlet allows a remote HTTP client manage inventory. This servlet will allow remote clients to download, upload, diff, validate, and commit inventory into the system. It does not allow for control over the diffrences when being commited. The diff is only provied as a last chance to see what will change when a commit happens. This servlet requires user to have valid user and password to the administration of the system.
Example URL: http://host:port/oam/inventoryservices?j_username=test&j_password=test&op=DOWNLOAD&client=script&filename=inventory.zip
Valid operations:
DOWNLOAD - Used to download the current application inventory.
`
Field Summary | |
static String |
CLIENTTYPE_PARAMETER
|
static String |
COMMIT_OPERATION
|
static String |
COMPUTEDOWNLOADSIZE_OPERATION
|
static String |
DIFFERENCE_OPERATION
|
static String |
DOWNLOAD_FILENAME_PARAMETER
|
static String |
DOWNLOAD_OPERATION
|
static int |
FILESIZE_LIMIT
|
static String |
OPERATION_PARAMETER
|
static String |
PASSWORD_ATTRIBUTE
|
static String |
PING_OPERATION
|
static String |
SCRIPT_CLIENTTYPE
|
static String |
SESSION_ATTRIBUTE
|
static String |
UPLOAD_OPERATION
|
static String |
USERID_ATTRIBUTE
|
static String |
VALIDATE_OPERATION
|
Constructor Summary | |
InventoryManagmentServlet()
|
Method Summary | |
protected void |
commit(HttpServletRequest request,
HttpServletResponse response)
Operation to commit current uploaded inventory to system. |
protected void |
computeInventoryFileSize(HttpServletRequest request,
HttpServletResponse response)
Computes the size of the inventory zip, and writes it as html to the response. |
protected void |
diff(HttpServletRequest request,
HttpServletResponse response)
Diffs the current uploaded inventory to the current application inventory. |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Put method for servlet, performs one of the following operations: retrieves the Zip file as a binary download. |
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Put method for servlet, performs one of the following operations: retrieves the Zip file as a binary download. |
protected void |
download(HttpServletRequest request,
HttpServletResponse response)
Downloads current running application inventory. |
protected com.bea.p13n.management.inventory.hierarchy.InventoryTree |
getTree(HttpServletRequest request)
Gets the InventoryTree from the InventoryServicesHelper. |
protected boolean |
isScriptClient(HttpServletRequest request)
Returns true if current client is true. |
protected void |
showError(String error,
Throwable ex,
HttpServletRequest request,
HttpServletResponse response)
There was a problem, this method reports an error to the client browser. |
protected void |
upload(HttpServletRequest request,
HttpServletResponse response)
Allows inventory zip file to be uploaded to server. |
protected void |
validate(HttpServletRequest request,
HttpServletResponse response)
Operation to request server to validate current uploaded inventory. |
protected File |
writeInventoryToTemporaryFile(HttpServletRequest request)
Exports the inventory into a zip file in a temporary location. |
protected void |
writeResponseMessage(String message,
HttpServletRequest request,
HttpServletResponse response)
Helper method to return text data back to the client. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CLIENTTYPE_PARAMETER
public static final String COMMIT_OPERATION
public static final String COMPUTEDOWNLOADSIZE_OPERATION
public static final String DIFFERENCE_OPERATION
public static final String DOWNLOAD_FILENAME_PARAMETER
public static final String DOWNLOAD_OPERATION
public static final int FILESIZE_LIMIT
public static final String OPERATION_PARAMETER
public static final String PASSWORD_ATTRIBUTE
public static final String PING_OPERATION
public static final String SCRIPT_CLIENTTYPE
public static final String SESSION_ATTRIBUTE
public static final String UPLOAD_OPERATION
public static final String USERID_ATTRIBUTE
public static final String VALIDATE_OPERATION
Constructor Detail |
public InventoryManagmentServlet()
Method Detail |
protected void commit(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- response
-
ServletException
IOException
protected void computeInventoryFileSize(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- the HttpServletRequestresponse
- the HttpServletResponse
ServletException
IOException
protected void diff(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- Http request object.response
- Http response object.
ServletException
IOException
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- the HttpServletRequestresponse
- the HttpServletResponse
ServletException
IOException
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- the HttpServletRequestresponse
- the HttpServletResponse
ServletException
IOException
protected void download(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- the HttpServletRequestresponse
- the HttpServletResponse
ServletException
IOException
protected com.bea.p13n.management.inventory.hierarchy.InventoryTree getTree(HttpServletRequest request)
request
- the HttpServletRequest
protected boolean isScriptClient(HttpServletRequest request)
request
-
protected void showError(String error, Throwable ex, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
error
- the String error, not localizedrequest
- the HttpServletRequestresponse
- the HttpServletResponse
ServletException
IOException
protected void upload(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- the HttpServletRequestresponse
- the HttpServletResponse
ServletException
IOException
protected void validate(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- response
-
ServletException
IOException
protected File writeInventoryToTemporaryFile(HttpServletRequest request)
request
- the HttpServletRequest
protected void writeResponseMessage(String message, HttpServletRequest request, HttpServletResponse response) throws IOException
message
- Message to send back to client.request
- response
-
IOException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |