| |
---|
| | import java.net.URI; |
---|
| | |
---|
| | import cactusServer.entities.Account; |
---|
| | |
---|
| | public class Session { |
---|
| | private Account account; |
---|
| | private URI accountURI; |
---|
| | |
---|
| | public class Session extends URIAddressedEntity{ |
---|
| | public Session(Account account, URI accountURI) { |
---|
| | this.account = account; |
---|
| | this.accountURI = accountURI; |
---|
| | super(accountURI, account); |
---|
| | } |
---|
| | |
---|
| | public Account getAccount() { |
---|
| | return account; |
---|
| | return (Account)getBody(); |
---|
| | } |
---|
| | |
---|
| | public void setAccount(Account account) { |
---|
| | this.account = account; |
---|
| | setBody(account); |
---|
| | } |
---|
| | |
---|
| | public URI getAccountURI() { |
---|
| | return accountURI; |
---|
| | return getUri(); |
---|
| | } |
---|
| | |
---|
| | public void setAccountURI(URI accountURI) { |
---|
| | this.accountURI = accountURI; |
---|
| | setUri(accountURI); |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | |