org.jacorb.orb.dsi
Class ServerRequest

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

public class ServerRequest
extends ServerRequest
implements ResponseHandler

Version:
$Id: ServerRequest.java,v 1.28 2004/02/05 11:12:28 simon.mcqueen Exp $
Author:
Gerald Brose, FU Berlin

Constructor Summary
ServerRequest(ORB orb, RequestInputStream in, GIOPConnection _connection)
           
 
Method Summary
 NVList arguments()
           
 void arguments(NVList p)
           
 OutputStream createExceptionReply()
           
 OutputStream createReply()
           
 Context ctx()
           
 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()
           
 Object getForwardReference()
           
 CDRInputStream getInputStream()
           
 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.
 ServiceContext[] getServiceContext()
           
 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()
           
 Any result()
          The resulting any must be used to create an input stream from which the result value can be read.
 void set_exception(Any ex)
           
 void set_result(Any res)
           
 void setLocationForward(ForwardRequest r)
           
 void setReference(Object o)
           
 void setRemainingPOAName(java.lang.String[] rest_of_name)
           
 void setServerRequestInfo(ServerRequestInfoImpl info)
           
 void setSystemException(SystemException s)
          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 in,
                     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 ServerRequest

result

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


arguments

public NVList arguments()

except

public Any except()

status

public ReplyStatusType_1_2 status()

ctx

public Context ctx()
Specified by:
ctx in class ServerRequest

arguments

public void arguments(NVList p)
Overrides:
arguments in class ServerRequest

set_result

public void set_result(Any res)
Overrides:
set_result in class ServerRequest

set_exception

public void set_exception(Any ex)
Overrides:
set_exception in class ServerRequest

reply

public void reply()

createReply

public OutputStream createReply()
Specified by:
createReply in interface ResponseHandler

createExceptionReply

public OutputStream createExceptionReply()
Specified by:
createExceptionReply in interface ResponseHandler

setSystemException

public void setSystemException(SystemException s)
our own:


setLocationForward

public void setLocationForward(ForwardRequest r)

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 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 ServiceContext[] getServiceContext()

objectId

public byte[] objectId()

streamBased

public boolean streamBased()

setReference

public void setReference(Object o)

getReference

public 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 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.