|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mq.il.http.HTTPServerIL
public class 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. |
Xid[] |
recover(ConnectionToken dc,
int flags)
Recover |
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
Exception| Method Detail |
|---|
public void acknowledge(ConnectionToken dc,
AcknowledgementRequest item)
throws Exception
ServerIL
acknowledge in interface ServerILdc - Description of Parameteritem - Description of Parameter
Exception - Description of Exception
public void addMessage(ConnectionToken dc,
SpyMessage message)
throws Exception
ServerIL
addMessage in interface ServerILdc - The feature to be added to the Message attributemessage - The feature to be added to the Message attribute
Exception - Description of Exception
public String authenticate(String userName,
String password)
throws Exception
ServerIL
authenticate in interface ServerILuserName - a username.password - a password.
Exception - Description of Exception
public SpyMessage[] browse(ConnectionToken dc,
javax.jms.Destination dest,
String selector)
throws Exception
ServerIL
browse in interface ServerILdc - Description of Parameterdest - Description of Parameterselector - Description of Parameter
Exception - Description of Exception
public void checkID(String ID)
throws Exception
ServerIL
checkID in interface ServerILID - a clientID set by the client.
Exception - if the clientID was not vallid.
public String checkUser(String userName,
String password)
throws Exception
ServerIL
checkUser in interface ServerILuserName - a valid user name that the StateManager knows about.password - a password
Exception - Description of Exception
public ServerIL cloneServerIL()
throws Exception
ServerIL
cloneServerIL in interface ServerILException - Description of Exception
public void connectionClosing(ConnectionToken dc)
throws Exception
ServerIL
connectionClosing in interface ServerILdc - Description of Parameter
Exception - Description of Exception
public javax.jms.Queue createQueue(ConnectionToken dc,
String dest)
throws Exception
ServerIL
createQueue in interface ServerILdc - Description of Parameterdest - Description of Parameter
Exception - Description of Exception
public javax.jms.Topic createTopic(ConnectionToken dc,
String dest)
throws Exception
ServerIL
createTopic in interface ServerILdc - Description of Parameterdest - Description of Parameter
Exception - Description of Exception
public void deleteTemporaryDestination(ConnectionToken dc,
SpyDestination dest)
throws Exception
ServerIL
deleteTemporaryDestination in interface ServerILdc - Description of Parameterdest - Description of Parameter
Exception - Description of Exception
public void destroySubscription(ConnectionToken dc,
DurableSubscriptionID id)
throws Exception
ServerIL
destroySubscription in interface ServerILid - Description of Parameter
Exception - Description of Exception
public String getID()
throws Exception
ServerIL
getID in interface ServerILException - Description of Exception
public javax.jms.TemporaryQueue getTemporaryQueue(ConnectionToken dc)
throws Exception
ServerIL
getTemporaryQueue in interface ServerILdc - Description of Parameter
Exception - Description of Exception
public javax.jms.TemporaryTopic getTemporaryTopic(ConnectionToken dc)
throws Exception
ServerIL
getTemporaryTopic in interface ServerILdc - Description of Parameter
Exception - Description of Exception
public void ping(ConnectionToken dc,
long clientTime)
throws Exception
ServerIL
ping in interface ServerILdc - Description of ParameterclientTime - Description of Parameter
Exception - Description of Exception
public SpyMessage receive(ConnectionToken dc,
int subscriberId,
long wait)
throws Exception
ServerIL
receive in interface ServerILdc - Description of ParametersubscriberId - Description of Parameterwait - Description of Parameter
Exception - Description of Exception
public void setConnectionToken(ConnectionToken newConnectionToken)
throws Exception
setConnectionToken in interface ServerILnewConnectionToken - org.jboss.mq.ConnectionToken
Exception - The exception description.
public void setEnabled(ConnectionToken dc,
boolean enabled)
throws Exception
ServerIL
setEnabled in interface ServerILdc - The new Enabled valueenabled - The new Enabled value
Exception - Description of Exception
public void subscribe(ConnectionToken dc,
Subscription s)
throws Exception
subscribe in interface ServerILdc - org.jboss.mq.ConnectionTokens - org.jboss.mq.Subscription
Exception - The exception description.
public void transact(ConnectionToken dc,
TransactionRequest t)
throws Exception
ServerIL
transact in interface ServerILdc - Description of Parametert - Description of Parameter
Exception - Description of Exception
public Xid[] recover(ConnectionToken dc,
int flags)
throws Exception
Recoverable
recover in interface Recoverabledc - the connnection tokenflags - the recovery flags
Exception - for any error
public void unsubscribe(ConnectionToken dc,
int subscriptionId)
throws Exception
ServerIL
unsubscribe in interface ServerILdc - 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 | |||||||||