Class Connection
- java.lang.Object
-
- com.tagtraum.beatunes.remotecontrol.Connection
-
public class Connection extends Object
Simple connection object representingRemoteControlService
requests. Instance are passed toActionListener.actionPerformed(ActionEvent)
methods via thesource
object ofActionEvent
.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description Connection(String request, ResponseWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRequest()
The original request.ResponseWriter
getWriter()
Use thisResponseWriter
to write a response to the client.
-
-
-
Constructor Detail
-
Connection
public Connection(String request, ResponseWriter writer)
-
-
Method Detail
-
getRequest
public String getRequest()
The original request.- Returns:
- request
-
getWriter
public ResponseWriter getWriter()
Use thisResponseWriter
to write a response to the client. Using JSON is highly recommended.- Returns:
- writer
-
-