Oracle Fusion Middleware
Oracle WebLogic Server API Reference
12c Release 1 (12.1.1)

Part Number E24391-02

weblogic.wsee.connection.transport.jms
Class JMSServerTransport

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

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

This class represents
Created: Sep 29, 2003 -- 2:26:36 PM


Field Summary
protected  String uri
           
 
Constructor Summary
JMSServerTransport(String uri)
           
 
Method Summary
 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 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
 

Field Detail

uri

protected String uri
Constructor Detail

JMSServerTransport

public JMSServerTransport(String uri)
Method Detail

getEndpointAddress

public String getEndpointAddress()
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

getServiceURI

public String getServiceURI()
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

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

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

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

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()
Gets the calling Principal

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

isReliable

public boolean isReliable()
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)

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, 2011, 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 API Reference
12c Release 1 (12.1.1)

Part Number E24391-02