net.sf.bt747.loc
Class HttpLocationSender

java.lang.Object
  extended by net.sf.bt747.loc.LocationSender
      extended by net.sf.bt747.loc.HttpLocationSender
All Implemented Interfaces:
ModelListener

public class HttpLocationSender
extends LocationSender


Constructor Summary
HttpLocationSender(Model m)
          Create and answer a new instance of HttpLocationSender.
 
Method Summary
 java.lang.String getPassword()
          Retrieve the password.
 java.lang.String getTargetFile()
          Retrieve the part of the URL after the port.
 java.lang.String getTargetHostname()
          Retrieve the target hostname.
 int getTargetPort()
          Retrieve the target port.
 java.lang.String getUser()
          Retrieve the username.
 void setPassword(java.lang.String password)
          Retrieve the password.
 void setTargetFile(java.lang.String targetFile)
          Set the part of the URL after the port.
 void setTargetHostname(java.lang.String targetHostname)
          Set the target hostname.
 void setTargetPort(int targetPort)
          Set the port.
 void setUser(java.lang.String user)
          Set the username.
 
Methods inherited from class net.sf.bt747.loc.LocationSender
getBluetoothAdress, getLastError, getUpdatePeriod, isDisabled, modelEvent, notifyConnectionFailure, notifyFatalFailure, notifySuccess, setBluetoothAdress, setDisabled, setUpdatePeriod
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpLocationSender

public HttpLocationSender(Model m)
Create and answer a new instance of HttpLocationSender.

Parameters:
m - Model The Model that this instance will belong to
Method Detail

getTargetHostname

public java.lang.String getTargetHostname()
Retrieve the target hostname.

Returns:
String the targt hostname

setTargetHostname

public void setTargetHostname(java.lang.String targetHostname)
Set the target hostname.

Parameters:
targetHostname - String The target hostname

getTargetPort

public int getTargetPort()
Retrieve the target port.

Returns:
int The port

setTargetPort

public void setTargetPort(int targetPort)
Set the port.

Parameters:
targetPort - int the Port to set.

getTargetFile

public java.lang.String getTargetFile()
Retrieve the part of the URL after the port.

Returns:
String the file

setTargetFile

public void setTargetFile(java.lang.String targetFile)
Set the part of the URL after the port.

Parameters:
targetFile - String the file

getUser

public java.lang.String getUser()
Retrieve the username.

Returns:
the username

setUser

public void setUser(java.lang.String user)
Set the username.

Parameters:
user - the Username

getPassword

public java.lang.String getPassword()
Retrieve the password.

Returns:
the password

setPassword

public void setPassword(java.lang.String password)
Retrieve the password.

Parameters:
password - the password