|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mq.il.http.HTTPServerIL
Client proxy to the server. For each request, an HTTP or HTTPS request is created, and posted to the given URL. The URL is supplied in the HTTPServerILService MBean configuration, or automatically generated by as localhost here, but can be overridden on the client side by specifying a property name for the URL value, which will be resolved to a system property on the client side.
Constructor Summary | |
HTTPServerIL(String url)
|
Method Summary | |
void |
acknowledge(ConnectionToken dc,
AcknowledgementRequest item)
#Description of the Method |
void |
addMessage(ConnectionToken dc,
SpyMessage message)
Adds a message to the destination specifyed in the message. |
String |
authenticate(String userName,
String password)
Authenticate the user. |
SpyMessage[] |
browse(ConnectionToken dc,
javax.jms.Destination dest,
String selector)
#Description of the Method |
void |
checkID(String ID)
Check if clientID is a valid ID. |
String |
checkUser(String userName,
String password)
Get a clientID for a given user/password. |
ServerIL |
cloneServerIL()
#Description of the Method |
void |
connectionClosing(ConnectionToken dc)
The client is closing the connection. |
javax.jms.Queue |
createQueue(ConnectionToken dc,
String dest)
#Description of the Method |
javax.jms.Topic |
createTopic(ConnectionToken dc,
String dest)
#Description of the Method |
void |
deleteTemporaryDestination(ConnectionToken dc,
SpyDestination dest)
#Description of the Method |
void |
destroySubscription(ConnectionToken dc,
DurableSubscriptionID id)
Unsubscribe from a durable subscription. |
String |
getID()
Get a clientID from the server. |
javax.jms.TemporaryQueue |
getTemporaryQueue(ConnectionToken dc)
Gets the TemporaryQueue attribute of the ServerIL object |
javax.jms.TemporaryTopic |
getTemporaryTopic(ConnectionToken dc)
Gets the TemporaryTopic attribute of the ServerIL object |
void |
ping(ConnectionToken dc,
long clientTime)
Ping the server. |
SpyMessage |
receive(ConnectionToken dc,
int subscriberId,
long wait)
Get a message synchronously. |
void |
setConnectionToken(ConnectionToken newConnectionToken)
|
void |
setEnabled(ConnectionToken dc,
boolean enabled)
Sets the Enabled attribute of the ServerIL object |
void |
subscribe(ConnectionToken dc,
Subscription s)
|
void |
transact(ConnectionToken dc,
TransactionRequest t)
#Description of the Method |
void |
unsubscribe(ConnectionToken dc,
int subscriptionId)
Remove a consumer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HTTPServerIL(String url) throws Exception
Method Detail |
public void acknowledge(ConnectionToken dc, AcknowledgementRequest item) throws Exception
ServerIL
acknowledge
in interface ServerIL
dc
- Description of Parameteritem
- Description of Parameter
Exception
- Description of Exceptionpublic void addMessage(ConnectionToken dc, SpyMessage message) throws Exception
ServerIL
addMessage
in interface ServerIL
dc
- The feature to be added to the Message attributemessage
- The feature to be added to the Message attribute
Exception
- Description of Exceptionpublic String authenticate(String userName, String password) throws Exception
ServerIL
authenticate
in interface ServerIL
userName
- a username.password
- a password.
Exception
- Description of Exceptionpublic SpyMessage[] browse(ConnectionToken dc, javax.jms.Destination dest, String selector) throws Exception
ServerIL
dc
- Description of Parameterdest
- Description of Parameterselector
- Description of Parameter
Exception
- Description of Exceptionpublic void checkID(String ID) throws Exception
ServerIL
ID
- a clientID set by the client.
Exception
- if the clientID was not vallid.public String checkUser(String userName, String password) throws Exception
ServerIL
userName
- a valid user name that the StateManager knows about.password
- a password
Exception
- Description of Exceptionpublic ServerIL cloneServerIL() throws Exception
ServerIL
cloneServerIL
in interface ServerIL
Exception
- Description of Exceptionpublic void connectionClosing(ConnectionToken dc) throws Exception
ServerIL
connectionClosing
in interface ServerIL
dc
- Description of Parameter
Exception
- Description of Exceptionpublic javax.jms.Queue createQueue(ConnectionToken dc, String dest) throws Exception
ServerIL
createQueue
in interface ServerIL
dc
- Description of Parameterdest
- Description of Parameter
Exception
- Description of Exceptionpublic javax.jms.Topic createTopic(ConnectionToken dc, String dest) throws Exception
ServerIL
createTopic
in interface ServerIL
dc
- Description of Parameterdest
- Description of Parameter
Exception
- Description of Exceptionpublic void deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) throws Exception
ServerIL
deleteTemporaryDestination
in interface ServerIL
dc
- Description of Parameterdest
- Description of Parameter
Exception
- Description of Exceptionpublic void destroySubscription(ConnectionToken dc, DurableSubscriptionID id) throws Exception
ServerIL
destroySubscription
in interface ServerIL
id
- Description of Parameter
Exception
- Description of Exceptionpublic String getID() throws Exception
ServerIL
Exception
- Description of Exceptionpublic javax.jms.TemporaryQueue getTemporaryQueue(ConnectionToken dc) throws Exception
ServerIL
getTemporaryQueue
in interface ServerIL
dc
- Description of Parameter
Exception
- Description of Exceptionpublic javax.jms.TemporaryTopic getTemporaryTopic(ConnectionToken dc) throws Exception
ServerIL
getTemporaryTopic
in interface ServerIL
dc
- Description of Parameter
Exception
- Description of Exceptionpublic void ping(ConnectionToken dc, long clientTime) throws Exception
ServerIL
dc
- Description of ParameterclientTime
- Description of Parameter
Exception
- Description of Exceptionpublic SpyMessage receive(ConnectionToken dc, int subscriberId, long wait) throws Exception
ServerIL
dc
- Description of ParametersubscriberId
- Description of Parameterwait
- Description of Parameter
Exception
- Description of Exceptionpublic void setConnectionToken(ConnectionToken newConnectionToken) throws Exception
setConnectionToken
in interface ServerIL
newConnectionToken
- org.jboss.mq.ConnectionToken
Exception
- The exception description.public void setEnabled(ConnectionToken dc, boolean enabled) throws Exception
ServerIL
setEnabled
in interface ServerIL
dc
- The new Enabled valueenabled
- The new Enabled value
Exception
- Description of Exceptionpublic void subscribe(ConnectionToken dc, Subscription s) throws Exception
dc
- org.jboss.mq.ConnectionTokens
- org.jboss.mq.Subscription
Exception
- The exception description.public void transact(ConnectionToken dc, TransactionRequest t) throws Exception
ServerIL
dc
- Description of Parametert
- Description of Parameter
Exception
- Description of Exceptionpublic void unsubscribe(ConnectionToken dc, int subscriptionId) throws Exception
ServerIL
unsubscribe
in interface ServerIL
dc
- Description of ParametersubscriptionId
- Description of Parameter
Exception
- Description of Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |