| org.jboss.mq.il.ServerIL
All known Subclasses: org.jboss.mq.il.oil2.OIL2ServerIL, org.jboss.mq.il.http.HTTPServerIL, org.jboss.mq.il.oil.OILServerIL, org.jboss.mq.il.uil2.UILServerIL, org.jboss.mq.il.jvm.JVMServerIL,
Method Summary | |
public void | acknowledge(ConnectionToken dc, AcknowledgementRequest item) | public void | addMessage(ConnectionToken dc, SpyMessage message) Adds a message to the destination specifyed in the message. | public String | authenticate(String userName, String password) Authenticate the user.
If using a securityManager the user will be autenticated by that.
Parameters: userName - a username. Parameters: password - a password. | public SpyMessage[] | browse(ConnectionToken dc, Destination dest, String selector) | public void | checkID(String ID) Check if clientID is a valid ID. | public String | checkUser(String userName, String password) Get a clientID for a given user/password. | public ServerIL | cloneServerIL() | public void | connectionClosing(ConnectionToken dc) The client is closing the connection. | public Queue | createQueue(ConnectionToken dc, String dest) | public Topic | createTopic(ConnectionToken dc, String dest) | public void | deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) | public void | destroySubscription(ConnectionToken dc, DurableSubscriptionID id) Unsubscribe from a durable subscription. | public String | getID() Get a clientID from the server. | public TemporaryQueue | getTemporaryQueue(ConnectionToken dc) | public TemporaryTopic | getTemporaryTopic(ConnectionToken dc) | public void | ping(ConnectionToken dc, long clientTime) Ping the server. | public SpyMessage | receive(ConnectionToken dc, int subscriberId, long wait) Get a message synchronously. | void | setConnectionToken(org.jboss.mq.ConnectionToken newConnectionToken) | public void | setEnabled(ConnectionToken dc, boolean enabled) | void | subscribe(org.jboss.mq.ConnectionToken dc, org.jboss.mq.Subscription s) | public void | transact(ConnectionToken dc, TransactionRequest t) | public void | unsubscribe(ConnectionToken dc, int subscriptionId) Remove a consumer. |
addMessage | public void addMessage(ConnectionToken dc, SpyMessage message) throws Exception(Code) | | Adds a message to the destination specifyed in the message.
Parameters: dc - The feature to be added to the Message attribute Parameters: message - The feature to be added to the Message attribute exception: Exception - Description of Exception |
authenticate | public String authenticate(String userName, String password) throws Exception(Code) | | Authenticate the user.
If using a securityManager the user will be autenticated by that.
Parameters: userName - a username. Parameters: password - a password. a sessionid, valid only for the life of this connection. exception: Exception - Description of Exception |
browse | public SpyMessage[] browse(ConnectionToken dc, Destination dest, String selector) throws Exception(Code) | | #Description of the Method
Parameters: dc - Description of Parameter Parameters: dest - Description of Parameter Parameters: selector - Description of Parameter Description of the Returned Value exception: Exception - Description of Exception |
checkID | public void checkID(String ID) throws Exception(Code) | | Check if clientID is a valid ID.
This method should be called when the client tries to set its own
clientID. It is up to the server side components
to update the ConectionToken if this method returns normaly.
Parameters: ID - a clientID set by the client. exception: Exception - if the clientID was not vallid. |
checkUser | public String checkUser(String userName, String password) throws Exception(Code) | | Get a clientID for a given user/password.
May also be used for autentication if StateManager is used as
authenticator.
Parameters: userName - a valid user name that the StateManager knows about. Parameters: password - a password a preconfigured clientID or null. exception: Exception - Description of Exception |
cloneServerIL | public ServerIL cloneServerIL() throws Exception(Code) | | #Description of the Method
Description of the Returned Value exception: Exception - Description of Exception |
connectionClosing | public void connectionClosing(ConnectionToken dc) throws Exception(Code) | | The client is closing the connection.
Parameters: dc - Description of Parameter exception: Exception - Description of Exception |
createQueue | public Queue createQueue(ConnectionToken dc, String dest) throws Exception(Code) | | #Description of the Method
Parameters: dc - Description of Parameter Parameters: dest - Description of Parameter Description of the Returned Value exception: Exception - Description of Exception |
createTopic | public Topic createTopic(ConnectionToken dc, String dest) throws Exception(Code) | | #Description of the Method
Parameters: dc - Description of Parameter Parameters: dest - Description of Parameter Description of the Returned Value exception: Exception - Description of Exception |
deleteTemporaryDestination | public void deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) throws Exception(Code) | | #Description of the Method
Parameters: dc - Description of Parameter Parameters: dest - Description of Parameter exception: Exception - Description of Exception |
getID | public String getID() throws Exception(Code) | | Get a clientID from the server. It is up to the server side components
to update the ConectionToken if this method returns normaly.
an internally generated clientID. exception: Exception - Description of Exception |
getTemporaryQueue | public TemporaryQueue getTemporaryQueue(ConnectionToken dc) throws Exception(Code) | | Gets the TemporaryQueue attribute of the ServerIL object
Parameters: dc - Description of Parameter The TemporaryQueue value exception: Exception - Description of Exception |
getTemporaryTopic | public TemporaryTopic getTemporaryTopic(ConnectionToken dc) throws Exception(Code) | | Gets the TemporaryTopic attribute of the ServerIL object
Parameters: dc - Description of Parameter The TemporaryTopic value exception: Exception - Description of Exception |
ping | public void ping(ConnectionToken dc, long clientTime) throws Exception(Code) | | Ping the server.
Parameters: dc - Description of Parameter Parameters: clientTime - Description of Parameter exception: Exception - Description of Exception |
receive | public SpyMessage receive(ConnectionToken dc, int subscriberId, long wait) throws Exception(Code) | | Get a message synchronously.
Parameters: dc - Description of Parameter Parameters: subscriberId - Description of Parameter Parameters: wait - Description of Parameter Description of the Returned Value exception: Exception - Description of Exception |
setEnabled | public void setEnabled(ConnectionToken dc, boolean enabled) throws Exception(Code) | | Sets the Enabled attribute of the ServerIL object
Parameters: dc - The new Enabled value Parameters: enabled - The new Enabled value exception: Exception - Description of Exception |
unsubscribe | public void unsubscribe(ConnectionToken dc, int subscriptionId) throws Exception(Code) | | Remove a consumer. Is NOT the same as the topic session unsubscribe.
Parameters: dc - Description of Parameter Parameters: subscriptionId - Description of Parameter exception: Exception - Description of Exception |
|
|