|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ipworks.Snpp
The SNPP class is used to send pages through the internet using the SNNP protocol.
It is a client implementation of Simple Network Paging Protocol Version 3 as specified in RFC 1861. Service extensions level 2 are supported intrinsically and the user can access all of level 3 extensions.
SNPP allows, unlike SMTP, for immediate notification of message delivery, gives absolute flexibility over the content sent to the recipient, allows to specifying multiple choice responses, etc.
To send a message the ServerName , recipient's PagerId and Message properties should be filled out (at a minimum) and Action delivers the message.
The server's response is given in PITrail events and by the LastReply property. Customized commands may be sent using the Command property.
Optional properties include: CallerId , ServerPort and LocalHost
Field Summary | |
static int |
a_Connect
|
static int |
a_Disconnect
|
static int |
a_Idle
|
static int |
a_Reset
|
static int |
a_Send
|
Constructor Summary | |
Snpp()
|
Method Summary | |
void |
addSnppEventListener(SnppEventListener l)
|
void |
fireError(int errorCode,
java.lang.String description)
Information about errors during data delivery. |
void |
firePITrail(int direction,
java.lang.String message)
Traces the commands sent to the mail server, and the respective replies. |
int |
getAction()
An action code for the component. |
java.lang.String |
getCallerId()
The id of the caller. |
java.lang.String |
getLastReply()
The last reply from the server. |
java.lang.String |
getLocalHost()
The name of the local host. |
java.lang.String |
getMessage()
The message being sent (alphanumeric). |
java.lang.String |
getPagerId()
The id number of the pager sending a Message to. |
java.lang.String |
getServerName()
The name or address of the SNPP server. |
int |
getServerPort()
The server port for SNPP (default 444). |
void |
removeSnppEventListener(SnppEventListener l)
|
void |
setAction(int action)
An action code for the component. |
void |
setCallerId(java.lang.String callerId)
The id of the caller. |
void |
setCommand(java.lang.String command)
Can be used to send additional commands directly to the SNPP server. |
void |
setMessage(java.lang.String message)
The message being sent (alphanumeric). |
void |
setPagerId(java.lang.String pagerId)
The id number of the pager sending a Message to. |
void |
setServerName(java.lang.String serverName)
The name or address of the SNPP server. |
void |
setServerPort(int serverPort)
The server port for SNPP (default 444). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int a_Idle
public static final int a_Connect
public static final int a_Disconnect
public static final int a_Send
public static final int a_Reset
Constructor Detail |
public Snpp()
Method Detail |
public int getAction()
The following are the possible values for the Action property and the corresponding descriptions:
public void setAction(int action) throws IPWorksException
The following are the possible values for the Action property and the corresponding descriptions:
public java.lang.String getCallerId()
public void setCallerId(java.lang.String callerId) throws IPWorksException
public void setCommand(java.lang.String command) throws IPWorksException
public java.lang.String getLastReply()
public java.lang.String getMessage()
public void setMessage(java.lang.String message) throws IPWorksException
public java.lang.String getPagerId()
public void setPagerId(java.lang.String pagerId) throws IPWorksException
public java.lang.String getServerName()
If the ServerName property is set to a Domain Name, a DNS request is initiated and upon successful termination of the request, the ServerName property is set to the corresponding address. If the search is not successful, an error is returned.
public void setServerName(java.lang.String serverName) throws IPWorksException
If the ServerName property is set to a Domain Name, a DNS request is initiated and upon successful termination of the request, the ServerName property is set to the corresponding address. If the search is not successful, an error is returned.
public int getServerPort()
public void setServerPort(int serverPort) throws IPWorksException
public java.lang.String getLocalHost()
If the class is connected, the LocalHost property shows the IP address of the interface through which the connection is made in internet dotted format (aaa.bbb.ccc.ddd). In most cases, this is the address of the local host, except for multihomed hosts (machines with more than one IP interface).
public void fireError(int errorCode, java.lang.String description)
SnppErrorEvent
public void firePITrail(int direction, java.lang.String message)
SnppPITrailEvent
public void addSnppEventListener(SnppEventListener l) throws java.util.TooManyListenersException
public void removeSnppEventListener(SnppEventListener l)
|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |