Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.3)

Part Number E13941-03

weblogic.wsee.connection.transport.jms
Class JmsServerQueueTransport

java.lang.Object
  extended by weblogic.wsee.connection.transport.jms.JmsServerQueueTransport
All Implemented Interfaces:
weblogic.wsee.connection.transport.ServerTransport, weblogic.wsee.connection.transport.Transport

public class JmsServerQueueTransport
extends Object
implements weblogic.wsee.connection.transport.ServerTransport

This class represents server side queue transport


Constructor Summary
JmsServerQueueTransport(String wsUrl, Message message, QueueConnectionFactory factory, String userName, String passwd)
           
 
Method Summary
 void completeSend()
           
 void confirmOneway()
          Confirms a oneway send/receive.
 String getEndpointAddress()
          Gets the address of the endpoint targeted by this transport
 String getName()
          Gets the name of the transport
 String getServiceURI()
          Gets the URI of the service targeted by this transport
 Principal getUserPrincipal()
          Gets the calling Principal
 boolean isBytesMessage()
           
 boolean isReliable()
          Determines if this transport is reliable
 boolean isUserInRole(String role)
          Determines if the caller is in a particular J2EE role
 InputStream receive(MimeHeaders headers)
          Receives a message
 OutputStream send(MimeHeaders headers)
          Sends a message
 OutputStream sendAuthorizationFault(MimeHeaders headers)
          Sends a authorization fault message
 OutputStream sendAuthorizationRequiredFault(MimeHeaders headers)
          Sends a authorization required fault message
 OutputStream sendGeneralFault(MimeHeaders headers)
          Sends a general fault message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsServerQueueTransport

public JmsServerQueueTransport(String wsUrl,
                               Message message,
                               QueueConnectionFactory factory,
                               String userName,
                               String passwd)
Method Detail

isUserInRole

public boolean isUserInRole(String role)
Description copied from interface: weblogic.wsee.connection.transport.ServerTransport
Determines if the caller is in a particular J2EE role

Specified by:
isUserInRole in interface weblogic.wsee.connection.transport.ServerTransport
Parameters:
role - The J2EE role
Returns:
true if the caller is in this role

getUserPrincipal

public Principal getUserPrincipal()
Description copied from interface: weblogic.wsee.connection.transport.ServerTransport
Gets the calling Principal

Specified by:
getUserPrincipal in interface weblogic.wsee.connection.transport.ServerTransport
Returns:
The calling Principal

isReliable

public boolean isReliable()
Description copied from interface: weblogic.wsee.connection.transport.ServerTransport
Determines if this transport is reliable

Specified by:
isReliable in interface weblogic.wsee.connection.transport.ServerTransport
Returns:
true if the transport is reliable (e.g. JMS)

getName

public String getName()
Description copied from interface: weblogic.wsee.connection.transport.Transport
Gets the name of the transport

Specified by:
getName in interface weblogic.wsee.connection.transport.Transport
Returns:
The name of the transport

getServiceURI

public String getServiceURI()
Description copied from interface: weblogic.wsee.connection.transport.Transport
Gets the URI of the service targeted by this transport

Specified by:
getServiceURI in interface weblogic.wsee.connection.transport.Transport
Returns:
The URI of the service targeted by this transport

getEndpointAddress

public String getEndpointAddress()
Description copied from interface: weblogic.wsee.connection.transport.Transport
Gets the address of the endpoint targeted by this transport

Specified by:
getEndpointAddress in interface weblogic.wsee.connection.transport.Transport
Returns:
The address of the endpoint targeted by this transport

isBytesMessage

public boolean isBytesMessage()

send

public OutputStream send(MimeHeaders headers)
                  throws IOException
Description copied from interface: weblogic.wsee.connection.transport.Transport
Sends a message

Specified by:
send in interface weblogic.wsee.connection.transport.Transport
Parameters:
headers - The headers to be written to the message
Returns:
An output stream for writing the message body
Throws:
IOException

completeSend

public void completeSend()
                  throws JMSException
Throws:
JMSException

sendGeneralFault

public OutputStream sendGeneralFault(MimeHeaders headers)
                              throws IOException
Description copied from interface: weblogic.wsee.connection.transport.ServerTransport
Sends a general fault message

Specified by:
sendGeneralFault in interface weblogic.wsee.connection.transport.ServerTransport
Parameters:
headers - The headers to be written to the message
Returns:
An output stream for writing the message body
Throws:
IOException - failed to send fault

sendAuthorizationFault

public OutputStream sendAuthorizationFault(MimeHeaders headers)
                                    throws IOException
Description copied from interface: weblogic.wsee.connection.transport.ServerTransport
Sends a authorization fault message

Specified by:
sendAuthorizationFault in interface weblogic.wsee.connection.transport.ServerTransport
Parameters:
headers - The headers to be written to the message
Returns:
An output stream for writing the message body
Throws:
IOException - failed to send fault

sendAuthorizationRequiredFault

public OutputStream sendAuthorizationRequiredFault(MimeHeaders headers)
                                            throws IOException
Description copied from interface: weblogic.wsee.connection.transport.ServerTransport
Sends a authorization required fault message

Specified by:
sendAuthorizationRequiredFault in interface weblogic.wsee.connection.transport.ServerTransport
Parameters:
headers - The headers to be written to the message
Returns:
An output stream for writing the message body
Throws:
IOException - failed to send fault

receive

public InputStream receive(MimeHeaders headers)
                    throws IOException
Description copied from interface: weblogic.wsee.connection.transport.Transport
Receives a message

Specified by:
receive in interface weblogic.wsee.connection.transport.Transport
Parameters:
headers - The headers, populated from the message
Returns:
An input stream for reading the message body
Throws:
IOException

confirmOneway

public void confirmOneway()
                   throws IOException
Description copied from interface: weblogic.wsee.connection.transport.Transport
Confirms a oneway send/receive. Server transports implement this to send acknowledgements, return status codes, etc. Client transports implement this to verify acknowledgements, status codes, etc.

Specified by:
confirmOneway in interface weblogic.wsee.connection.transport.Transport
Throws:
IOException

Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server 10.3.3 API Reference
11g Release 1 (10.3.3)

Part Number E13941-03