To get the value of a Nucleus component property, send a Legacy REST Web Services request as described in the following table.

Request Component

Value

HTTP Method

GET

Functional Parameters

None

URL

Include the component pathname in the application path after /rest/bean/. Include the name of the property at the end of the path. See Nucleus Components.

To get the values of all properties of a component, do not include a property name at the end of the path.

The following example shows a Legacy REST Web Services request that returns the value of the atg/dynamo/Configuration.httpPort property.

curl -v -b cookies.txt -X GET \
http://myserver:8080/rest/bean/atg/dynamo/Configuration/httpPort

* About to connect() to myserver port 8080 (#0)
*   Trying 12.34.567.890... connected
* Connected to myserver (12.34.567.890) port 8080 (#0)
> GET /rest/bean/atg/dynamo/Configuration/httpPort HTTP/1.1
> User-Agent: curl/7.21.1 (i386-pc-win32) libcurl/7.21.1 zlib/1.2.5
> Host: myserver:8080
> Accept: */*
> Cookie: JSESSIONID=8DC60C0801D934F472BD9BE8A15A54F9
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
< X-ATG-Version: version=
QVRHUGxhdGZvcm0vMTAuMCxTZXJ2aWNlLzEwLjAsQ0FGLzEwLjAgWyBQbGF0Zm9ybUxp
Y2Vuc2UvMCBTZWxmU2VydmljZUxpY2Vuc2UvMCAgXQ==
< Content-Type: application/xml;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Mon, 25 Oct 2010 21:29:05 GMT
<
<?xml version="1.0" encoding="UTF-8"?>

<atgResponse>
  <httpPort>8080</httpPort>
</atgResponse>
* Connection #0 to host myserver left intact
* Closing connection #0

The following example shows a Legacy REST Web Services request that returns all the properties of a Nucleus component.

curl -v -b cookies.txt -X GET \
http://myserver:8080/rest/bean/atg/dynamo/Configuration

Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices