|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fosstrak.ale.server.Subscriber
public class Subscriber
This class represents a subscriber of an ec specification. There are three types of such subscribers: http, tcp, file This class parses and validates the notification url, formats the ec reports and notifies the subscriber.
| Constructor Summary | |
|---|---|
Subscriber(java.lang.String notificationURI)
Constructor parses and validates the notification uri and creates the corresponding subscriber. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHost()
This method returns the host name of this subscriber. |
java.lang.String |
getPath()
This method returns the path of this subscriber. |
int |
getPort()
This method returns the port number of this subscriber. |
java.lang.String |
getURI()
This metod returns the notification uri of this subscriber. |
boolean |
isFile()
This method indicates if this subscriber uses the file protocol. |
boolean |
isHttp()
This method indicates if this subscriber uses the http protocol. |
boolean |
isTcp()
This method indicates if this subscriber uses the tcp protocol. |
void |
notify(org.fosstrak.ale.xsd.ale.epcglobal.ECReports reports)
This method notifies the subscriber about the ec reports. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Subscriber(java.lang.String notificationURI)
throws org.fosstrak.ale.wsdl.ale.epcglobal.InvalidURIExceptionResponse
notificationURI - of the subscriber
org.fosstrak.ale.wsdl.ale.epcglobal.InvalidURIException - if the notification uri is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.InvalidURIExceptionResponse| Method Detail |
|---|
public java.lang.String getURI()
public boolean isHttp()
public boolean isTcp()
public boolean isFile()
public java.lang.String getHost()
public int getPort()
public java.lang.String getPath()
public void notify(org.fosstrak.ale.xsd.ale.epcglobal.ECReports reports)
throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
reports - to notify the subscriber about
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - if an implementation exception occures
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||