|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.huihoo.jfox.ms.crb.TestInterceptor
only for test
| Constructor Summary | |
TestInterceptor()
|
|
| Method Summary | |
void |
addSubscriber()
|
boolean |
authenticate(java.lang.String userName,
java.lang.String password)
Authenticate the user. |
javax.jms.Message[] |
browse(javax.jms.Destination destination,
java.lang.String selector)
Browse message on given destination |
void |
checkID(java.lang.String ID)
Check if clientID is a valid ID |
void |
closeConnection()
The client close the connection. |
javax.jms.Queue |
createQueue(java.lang.String destination)
Create a queue identity |
javax.jms.TemporaryQueue |
createTemporaryQueue()
Gets the TemporaryQueue |
javax.jms.TemporaryTopic |
createTemporaryTopic()
Gets the TemporaryTopic |
javax.jms.Topic |
createTopic(java.lang.String destination)
Create a topic identity |
void |
deleteTemporaryDestination(javax.jms.Destination destination)
Delete a temporary destination from server |
java.lang.String |
getID()
Get a clientID from the server. |
javax.jms.Message |
receiveMessage(javax.jms.Destination destination,
long wait)
Receive a message synchronously. |
void |
removeSubscriber()
Remove a subcriber. |
void |
sendMessage(javax.jms.Message message)
Send a message to the destination specifyed in the message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TestInterceptor()
| Method Detail |
public java.lang.String getID()
throws java.lang.Exception
Interceptor
getID in interface Interceptorjava.lang.Exception
public javax.jms.TemporaryTopic createTemporaryTopic()
throws java.lang.Exception
createTemporaryTopic in interface Interceptorjava.lang.Exception
public javax.jms.TemporaryQueue createTemporaryQueue()
throws java.lang.Exception
createTemporaryQueue in interface Interceptorjava.lang.Exception
public void closeConnection()
throws java.lang.Exception
closeConnection in interface Interceptorjava.lang.Exception
public void checkID(java.lang.String ID)
throws java.lang.Exception
checkID in interface Interceptorjava.lang.Exception
public void sendMessage(javax.jms.Message message)
throws java.lang.Exception
sendMessage in interface Interceptorjava.lang.Exception
public javax.jms.Queue createQueue(java.lang.String destination)
throws java.lang.Exception
createQueue in interface Interceptorjava.lang.Exception
public javax.jms.Topic createTopic(java.lang.String destination)
throws java.lang.Exception
createTopic in interface Interceptordestination -
java.lang.Exception
public void deleteTemporaryDestination(javax.jms.Destination destination)
throws java.lang.Exception
deleteTemporaryDestination in interface Interceptorjava.lang.Exception
public javax.jms.Message[] browse(javax.jms.Destination destination,
java.lang.String selector)
throws java.lang.Exception
browse in interface Interceptorjava.lang.Exception
public javax.jms.Message receiveMessage(javax.jms.Destination destination,
long wait)
throws java.lang.Exception
receiveMessage in interface Interceptorjava.lang.Exception
public void removeSubscriber()
throws java.lang.Exception
removeSubscriber in interface Interceptorjava.lang.Exception - Description of Exception
public boolean authenticate(java.lang.String userName,
java.lang.String password)
throws java.lang.Exception
authenticate in interface Interceptorjava.lang.Exception
public void addSubscriber()
throws java.lang.Exception
addSubscriber in interface Interceptorjava.lang.Exception - The exception description.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||