Package org.dogtagpki.server.rest
Class SecurityDomainHostService
- java.lang.Object
-
- com.netscape.cms.servlet.base.PKIService
-
- org.dogtagpki.server.rest.SecurityDomainHostService
-
- All Implemented Interfaces:
SecurityDomainHostResource
public class SecurityDomainHostService extends PKIService implements SecurityDomainHostResource
- Author:
- Endi S. Dewata
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
-
Fields inherited from class com.netscape.cms.servlet.base.PKIService
bannerFile, DEFAULT_LONG_CACHE_LIFETIME, DEFAULT_SIZE, headers, MESSAGE_FORMATS, MIN_FILTER_LENGTH, request, servletContext, servletRequest, uriInfo
-
-
Constructor Summary
Constructors Constructor Description SecurityDomainHostService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
addHost(SecurityDomainHost host)
javax.ws.rs.core.Response
getHost(java.lang.String hostID)
javax.ws.rs.core.Response
getHosts()
javax.ws.rs.core.Response
removeHost(java.lang.String hostID)
-
Methods inherited from class com.netscape.cms.servlet.base.PKIService
createCreatedResponse, createNoContentResponse, createOKResponse, createOKResponse, getBanner, getInstanceDir, getLocale, getParams, getResponseFormat, getResponseFormat, isBannerEnabled, marshall, resolveFormat, resolveFormat, sendConditionalGetResponse, unmarshall
-
-
-
-
Method Detail
-
getHosts
public javax.ws.rs.core.Response getHosts() throws java.lang.Exception
- Specified by:
getHosts
in interfaceSecurityDomainHostResource
- Throws:
java.lang.Exception
-
getHost
public javax.ws.rs.core.Response getHost(java.lang.String hostID) throws java.lang.Exception
- Specified by:
getHost
in interfaceSecurityDomainHostResource
- Throws:
java.lang.Exception
-
addHost
public javax.ws.rs.core.Response addHost(SecurityDomainHost host) throws java.lang.Exception
- Specified by:
addHost
in interfaceSecurityDomainHostResource
- Throws:
java.lang.Exception
-
removeHost
public javax.ws.rs.core.Response removeHost(java.lang.String hostID) throws java.lang.Exception
- Specified by:
removeHost
in interfaceSecurityDomainHostResource
- Throws:
java.lang.Exception
-
-