Intro
Can I read the content from an application using the cli command? Yes.
Reading content with CLI command
[standalone@localhost:9990 /] /deployment=hibernate.war:read-content(path=index.html)
{
"outcome" => "success",
"result" => {"uuid" => "06519ccf-24d4-4b6f-9be1-aa859f98a538"},
"response-headers" => {"attached-streams" => [{
"uuid" => "06519ccf-24d4-4b6f-9be1-aa859f98a538",
"mime-type" => "text/html"
}]}
}
But to read you will need <attachment display>
attachment display --operation=/deployment=hibernate.war:read-content(path=index.html)
The content will be shown as:
<!-- Plain HTML page that kicks us into the app -->
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=index.jsf">
</head>