Java Reference
In-Depth Information
Performing operations on resources
Once you have identified a resource, you can perform operations on the resource.
An operation uses the following syntax:
:operation-name
So in the previous example, you can query the list of available resources for your
nodes by adding the read-resource command at the end of it:
/subsystem=web/connector=http/:read-resource()
{
"outcome" => "success",
"result" => {
"enable-lookups" => false,
"enabled" => true,
"executor" => undefined,
"max-connections" => undefined,
"max-post-size" => 2097152,
"max-save-post-size" => 4096,
"name" => "http",
"protocol" => "HTTP/1.1",
"proxy-name" => undefined,
"proxy-port" => undefined,
"redirect-port" => 8433,
"scheme" => "http",
"secure" => false,
"socket-binding" => "http",
"ssl" => undefined,
"virtual-server" => undefined
}
}
If you want to query for a specific attribute of your node, you can use the read-at-
tribute operation instead. For example, the following code shows how to read the
enabled attribute from the HTTP connector:
Search WWH ::




Custom Search