org.jacorb.orb.dsi
Class ServerRequest

java.lang.Object
  extended by org.omg.CORBA.ServerRequest
      extended by org.jacorb.orb.dsi.ServerRequest
All Implemented Interfaces:
org.omg.CORBA.portable.ResponseHandler

public class ServerRequest
extends org.omg.CORBA.ServerRequest
implements org.omg.CORBA.portable.ResponseHandler

Version:
$Id: ServerRequest.java,v 1.46 2006/07/20 11:16:01 alphonse.bendt Exp $
Author:
Gerald Brose, FU Berlin

Constructor Summary
ServerRequest(ORB orb, RequestInputStream inStream, GIOPConnection _connection)
           
 
Method Summary
 org.omg.CORBA.NVList arguments()
           
 void arguments(org.omg.CORBA.NVList list)
           
 org.omg.CORBA.portable.OutputStream createExceptionReply()
           
 org.omg.CORBA.portable.OutputStream createReply()
           
 org.omg.CORBA.Context ctx()
           
 org.omg.CORBA.Any except()
           
 RequestInputStream get_in()
           
 ReplyOutputStream get_out()
          If a new output stream has to be created, the request itself isn't fixed to stream-based.
 GIOPConnection getConnection()
           
 org.omg.CORBA.Object getForwardReference()
           
 CDRInputStream getInputStream()
           
 org.omg.CORBA.Object getReference()
           
 UtcT getReplyEndTime()
          Returns the time after which a reply to this request may no longer be obtained or returned to the client; null if no such time has been specified.
 ReplyOutputStream getReplyOutputStream()
           
 UtcT getRequestEndTime()
          Returns the time after which this request may no longer be delivered to its target; null if no such time has been specified.
 UtcT getRequestStartTime()
          Returns the time after which this request may be delivered to its target; null if no such time has been specified.
 java.util.List getScopes()
          getScopes returns the cached list of poa_names.
 org.omg.IOP.ServiceContext[] getServiceContext()
           
 org.omg.CORBA.SystemException getSystemException()
           
 byte[] objectId()
           
 byte[] objectKey()
           
 java.lang.String operation()
           
 java.lang.String[] remainingPOAName()
          remainingPOAName retrieves (if any) the target poa's name in relation to parent.
 void reply()
           
 int requestId()
           
 boolean responseExpected()
           
 org.omg.CORBA.Any result()
          The resulting any must be used to create an input stream from which the result value can be read.
 void set_exception(org.omg.CORBA.Any exception)
           
 void set_result(org.omg.CORBA.Any res)
           
 void setLocationForward(org.omg.PortableServer.ForwardRequest request)
           
 void setReference(org.omg.CORBA.Object obj)
           
 void setRemainingPOAName(java.lang.String[] rest_of_name)
           
 void setServerRequestInfo(ServerRequestInfoImpl info)
           
 void setSystemException(org.omg.CORBA.SystemException exception)
          our own:
 void setUsePreconstructedReply(boolean use)
           
 ReplyStatusType_1_2 status()
           
 boolean streamBased()
           
 short syncScope()
          Returns the SyncScope of this request, as expressed in the header's response_flags.
 
Methods inherited from class org.omg.CORBA.ServerRequest
except, op_name, params, result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerRequest

public ServerRequest(ORB orb,
                     RequestInputStream inStream,
                     GIOPConnection _connection)
Method Detail

setRemainingPOAName

public void setRemainingPOAName(java.lang.String[] rest_of_name)

remainingPOAName

public java.lang.String[] remainingPOAName()
remainingPOAName retrieves (if any) the target poa's name in relation to parent.

Returns:
a String[] value

operation

public java.lang.String operation()
Overrides:
operation in class org.omg.CORBA.ServerRequest

result

public org.omg.CORBA.Any result()
The resulting any must be used to create an input stream from which the result value can be read.


arguments

public org.omg.CORBA.NVList arguments()

except

public org.omg.CORBA.Any except()

status

public ReplyStatusType_1_2 status()

ctx

public org.omg.CORBA.Context ctx()
Specified by:
ctx in class org.omg.CORBA.ServerRequest

arguments

public void arguments(org.omg.CORBA.NVList list)
Overrides:
arguments in class org.omg.CORBA.ServerRequest

set_result

public void set_result(org.omg.CORBA.Any res)
Overrides:
set_result in class org.omg.CORBA.ServerRequest

set_exception

public void set_exception(org.omg.CORBA.Any exception)
Overrides:
set_exception in class org.omg.CORBA.ServerRequest

reply

public void reply()

createReply

public org.omg.CORBA.portable.OutputStream createReply()
Specified by:
createReply in interface org.omg.CORBA.portable.ResponseHandler

createExceptionReply

public org.omg.CORBA.portable.OutputStream createExceptionReply()
Specified by:
createExceptionReply in interface org.omg.CORBA.portable.ResponseHandler

setSystemException

public void setSystemException(org.omg.CORBA.SystemException exception)
our own:


setLocationForward

public void setLocationForward(org.omg.PortableServer.ForwardRequest request)

getInputStream

public CDRInputStream getInputStream()
Returns:
the InputStream. This operation sets the request be stream-based, ie. all attempts to extract data using DII-based operations will throw exceptions For internal access to the stream use get_in()

getReplyOutputStream

public ReplyOutputStream getReplyOutputStream()

responseExpected

public boolean responseExpected()

syncScope

public short syncScope()
Returns the SyncScope of this request, as expressed in the header's response_flags. Note that here, on the server side, this no longer differentiates between SYNC_NONE and SYNC_WITH_TRANSPORT. The former is returned in both cases.


getSystemException

public org.omg.CORBA.SystemException getSystemException()

requestId

public int requestId()

objectKey

public byte[] objectKey()

getScopes

public java.util.List getScopes()
getScopes returns the cached list of poa_names.

Returns:
a List value containing Strings separated by OBJECT_KEY_SEPARATOR

getServiceContext

public org.omg.IOP.ServiceContext[] getServiceContext()

objectId

public byte[] objectId()

streamBased

public boolean streamBased()

setReference

public void setReference(org.omg.CORBA.Object obj)

getReference

public org.omg.CORBA.Object getReference()

get_in

public RequestInputStream get_in()

get_out

public ReplyOutputStream get_out()
If a new output stream has to be created, the request itself isn't fixed to stream-based.


setServerRequestInfo

public void setServerRequestInfo(ServerRequestInfoImpl info)

getForwardReference

public org.omg.CORBA.Object getForwardReference()

getConnection

public GIOPConnection getConnection()

setUsePreconstructedReply

public void setUsePreconstructedReply(boolean use)

getReplyEndTime

public UtcT getReplyEndTime()
Returns the time after which a reply to this request may no longer be obtained or returned to the client; null if no such time has been specified.


getRequestEndTime

public UtcT getRequestEndTime()
Returns the time after which this request may no longer be delivered to its target; null if no such time has been specified.


getRequestStartTime

public UtcT getRequestStartTime()
Returns the time after which this request may be delivered to its target; null if no such time has been specified.