org.jacorb.orb.dsi

Class ServerRequest

public class ServerRequest extends ServerRequest implements 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
NVListarguments()
voidarguments(NVList list)
OutputStreamcreateExceptionReply()
OutputStreamcreateReply()
Contextctx()
Anyexcept()
GIOPConnectiongetConnection()
ObjectgetForwardReference()
CDRInputStreamgetInputStream()
ObjectgetReference()
UtcTgetReplyEndTime()
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.
ReplyOutputStreamgetReplyOutputStream()
UtcTgetRequestEndTime()
Returns the time after which this request may no longer be delivered to its target; null if no such time has been specified.
UtcTgetRequestStartTime()
Returns the time after which this request may be delivered to its target; null if no such time has been specified.
ListgetScopes()
getScopes returns the cached list of poa_names.
ServiceContext[]getServiceContext()
SystemExceptiongetSystemException()
RequestInputStreamget_in()
ReplyOutputStreamget_out()
If a new output stream has to be created, the request itself isn't fixed to stream-based.
byte[]objectId()
byte[]objectKey()
Stringoperation()
String[]remainingPOAName()
remainingPOAName retrieves (if any) the target poa's name in relation to parent.
voidreply()
intrequestId()
booleanresponseExpected()
Anyresult()
The resulting any must be used to create an input stream from which the result value can be read.
voidsetLocationForward(ForwardRequest request)
voidsetReference(Object obj)
voidsetRemainingPOAName(String[] rest_of_name)
voidsetServerRequestInfo(ServerRequestInfoImpl info)
voidsetSystemException(SystemException exception)
our own:
voidsetUsePreconstructedReply(boolean use)
voidset_exception(Any exception)
voidset_result(Any res)
ReplyStatusType_1_2status()
booleanstreamBased()
shortsyncScope()
Returns the SyncScope of this request, as expressed in the header's response_flags.

Constructor Detail

ServerRequest

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

Method Detail

arguments

public NVList arguments()

arguments

public void arguments(NVList list)

createExceptionReply

public OutputStream createExceptionReply()

createReply

public OutputStream createReply()

ctx

public Context ctx()

except

public Any except()

getConnection

public GIOPConnection getConnection()

getForwardReference

public Object getForwardReference()

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()

getReference

public Object getReference()

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.

getReplyOutputStream

public ReplyOutputStream getReplyOutputStream()

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.

getScopes

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

getSystemException

public SystemException getSystemException()

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.

objectId

public byte[] objectId()

objectKey

public byte[] objectKey()

operation

public String operation()

remainingPOAName

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

Returns: a String[] value

reply

public void reply()

requestId

public int requestId()

responseExpected

public boolean responseExpected()

result

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

setLocationForward

public void setLocationForward(ForwardRequest request)

setReference

public void setReference(Object obj)

setRemainingPOAName

public void setRemainingPOAName(String[] rest_of_name)

setServerRequestInfo

public void setServerRequestInfo(ServerRequestInfoImpl info)

setSystemException

public void setSystemException(SystemException exception)
our own:

setUsePreconstructedReply

public void setUsePreconstructedReply(boolean use)

set_exception

public void set_exception(Any exception)

set_result

public void set_result(Any res)

status

public ReplyStatusType_1_2 status()

streamBased

public boolean streamBased()

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.