com.davesag.smpp.command
Class Response

java.lang.Object
  extended bycom.davesag.smpp.command.Response
Direct Known Subclasses:
ErrorResponse

public class Response
extends Object

A targetted response from the server.


Constructor Summary
Response(ie.omk.smpp.Address target, String message)
          create an ErrorResponse for the given target, with the given message.
 
Method Summary
 String getResponseMessage()
          get the response's formatted string.
 ie.omk.smpp.Address getTarget()
          get the target of this response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response

public Response(ie.omk.smpp.Address target,
                String message)
create an ErrorResponse for the given target, with the given message.

Parameters:
target - The user to send this response to.
message - The message to send.
Method Detail

getResponseMessage

public String getResponseMessage()
get the response's formatted string.

Returns:
a response string to send to the SMPP server.

getTarget

public ie.omk.smpp.Address getTarget()
get the target of this response.

Returns:
a target user id (usually a phone number).


SMPP Commander API version 20 Jan 2005. (C) 2004 Dave Sag.