diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-09-06 16:33:48 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-10-26 16:01:40 -0500 |
commit | 5bb7933dd00f11ec87237d3bad7756989abb59ee (patch) | |
tree | 25f3260511f604e247814d068aa14b5c8159bb7f /base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java | |
parent | 6359021315622e97ae3c074752548f915e4af00d (diff) | |
download | pki-5bb7933dd00f11ec87237d3bad7756989abb59ee.tar.gz pki-5bb7933dd00f11ec87237d3bad7756989abb59ee.tar.xz pki-5bb7933dd00f11ec87237d3bad7756989abb59ee.zip |
Added REST interface to get domain info.
The REST interface for security domain has been updated to provide
a method to get the domain info. A CLI has been provided to access
this method.
Ticket #309
Diffstat (limited to 'base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java')
-rw-r--r-- | base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java b/base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java index 41bbf779e..1805d15c4 100644 --- a/base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java +++ b/base/common/src/com/netscape/certsrv/system/SecurityDomainResource.java @@ -35,4 +35,9 @@ public interface SecurityDomainResource { public InstallToken getInstallToken( @QueryParam("hostname") String hostname, @QueryParam("subsystem") String subsystem); + + @GET + @Path("domainInfo") + @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) + public DomainInfo getDomainInfo(); } |