com.example.hello.server
Class HelloEngine
java.lang.Object
com.example.hello.server.HelloEngine
- All Implemented Interfaces:
- Hello
public class HelloEngine
- extends Object
- implements Hello
Implementation of the service layer facade.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloEngine
public HelloEngine()
findUser
public User findUser(String username)
throws ResourceNotFoundException
- Specified by:
findUser in interface Hello
- Throws:
ResourceNotFoundException
createUser
public void createUser(User user)
throws ResourceFoundException
- Specified by:
createUser in interface Hello
- Throws:
ResourceFoundException
createSession
public void createSession(Session session)
throws ResourceFoundException
- Specified by:
createSession in interface Hello
- Throws:
ResourceFoundException
checkToken
public Session checkToken(String token)
throws ResourceNotFoundException
- Specified by:
checkToken in interface Hello
- Throws:
ResourceNotFoundException
findUser
public User findUser(Principal token)
throws ResourceNotFoundException
- Specified by:
findUser in interface Hello
- Throws:
ResourceNotFoundException
findGreeting
public Greeting findGreeting(String name)
throws ResourceNotFoundException
- Specified by:
findGreeting in interface Hello
- Throws:
ResourceNotFoundException
listGreetings
public List<Greeting> listGreetings()
- Specified by:
listGreetings in interface Hello
createGreeting
public void createGreeting(Greeting greeting)
throws ResourceFoundException
- Specified by:
createGreeting in interface Hello
- Throws:
ResourceFoundException