|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ntnu.item.router.utilities.UserInputHandler
class UserInputHandler
This is a handler for the user input.
When a user makes changes in the Web UI, a message will be sent here.
NOTE: Why did we do this over http? Why not make the UI write to the xml
file where it reads the data? Because then the RouterControl would have to
poll for changes in the file and compare to what it has locally.
In addition, we might create a stand-alone control panel, which
reads the xml and sends messages to the server with preferences
Field Summary | |
---|---|
private ServiceSessionBank |
serviceBank
The ServiceSessionBank object to report measurements to |
Constructor Summary | |
---|---|
UserInputHandler(ServiceSessionBank serviceBank)
Constructor |
Method Summary | |
---|---|
private java.lang.String |
getRedirectLocation(java.lang.String request)
Will examine the http request body and return the location given by the redirect parameter |
void |
handle(com.sun.net.httpserver.HttpExchange t)
|
private java.lang.String |
removeTrailingRedirectParameter(java.lang.String request)
Helper method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ServiceSessionBank serviceBank
ServiceSessionBank
object to report measurements to
Constructor Detail |
---|
public UserInputHandler(ServiceSessionBank serviceBank)
serviceBank
- Method Detail |
---|
public void handle(com.sun.net.httpserver.HttpExchange t) throws java.io.IOException
handle
in interface com.sun.net.httpserver.HttpHandler
java.io.IOException
private java.lang.String removeTrailingRedirectParameter(java.lang.String request)
request
- the http request body
private java.lang.String getRedirectLocation(java.lang.String request)
request
- to look for redirect address
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |