|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.resources.ProtectedResource
org.nhindirect.config.resources.AddressResource
@Component public class AddressResource
JAX-RS resource for managing address resources in the configuration service.
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor Summary | |
|---|---|
AddressResource()
Constructor |
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
addAddress(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.Address address)
Adds an address to the system and associates it with a domain. |
javax.ws.rs.core.Response |
getAddress(String address)
Gets an address by name. |
javax.ws.rs.core.Response |
getAddressesByDomain(String domainName)
Gets all addresses configured for a given domain. |
javax.ws.rs.core.Response |
removedAddress(String address)
Removes an address from the system. |
void |
setAddressDao(org.nhindirect.config.store.dao.AddressDao dao)
Sets the address Dao. |
void |
setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
Sets the domain Dao. |
javax.ws.rs.core.Response |
updateAddress(org.nhindirect.config.model.Address address)
Updates the attributes of an existing address. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddressResource()
| Method Detail |
|---|
@Autowired public void setAddressDao(org.nhindirect.config.store.dao.AddressDao dao)
dao - Address Dao@Autowired public void setDomainDao(org.nhindirect.config.store.dao.DomainDao domainDao)
domainDao - public javax.ws.rs.core.Response getAddress(String address)
address - The address to retrieve.
public javax.ws.rs.core.Response getAddressesByDomain(String domainName)
domainName - The domain name to retrieve addresses for.
public javax.ws.rs.core.Response addAddress(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.Address address)
uriInfo - Injected URI context used for building the location URI.address - The address to add.
public javax.ws.rs.core.Response updateAddress(org.nhindirect.config.model.Address address)
address - The address to update along with new attributes.
public javax.ws.rs.core.Response removedAddress(String address)
address - The address to removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||