gnu.CORBA.GIOP

Class ReplyHeader

Known Direct Subclasses:
ReplyHeader

public abstract class ReplyHeader
extends ContextHandler

The header of the standard reply.

Field Summary

static int
LOCATION_FORWARD
Reply status, if the client ORB must re - send the request to another destination.
static int
LOCATION_FORWARD_PERM
Reply status, indicating that the target has permanently changed the address to the supplied IOR.
static int
NEEDS_ADDRESSING_MODE
Reply status, indicating, that the ORB requires to resend the object address in the required addressing mode, contained as the reply body.
static int
NO_EXCEPTION
Reply status, if no exception occured.
static int
SYSTEM_EXCEPTION
Reply status, system exception.
static int
USER_EXCEPTION
Reply status, user exception.
int
reply_status
The status of this reply, holds one of the reply status constants.
int
request_id
The Id of request into response of which this reply has been sent.

Fields inherited from class gnu.CORBA.GIOP.ContextHandler

NO_CONTEXT, service_context

Method Summary

String
getStatusString()
Return the message status as a string.
abstract void
read(AbstractCdrInput in)
Reads the header from the stream.
String
toString()
Returns a short string representation.
abstract void
write(AbstractCdrOutput out)
Writes the header to the stream.

Methods inherited from class gnu.CORBA.GIOP.ContextHandler

addContext

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

LOCATION_FORWARD

public static final int LOCATION_FORWARD
Reply status, if the client ORB must re - send the request to another destination. The body contains IOR.
Field Value:
3

LOCATION_FORWARD_PERM

public static final int LOCATION_FORWARD_PERM
Reply status, indicating that the target has permanently changed the address to the supplied IOR.
Field Value:
4

NEEDS_ADDRESSING_MODE

public static final int NEEDS_ADDRESSING_MODE
Reply status, indicating, that the ORB requires to resend the object address in the required addressing mode, contained as the reply body.
Field Value:
5

NO_EXCEPTION

public static final int NO_EXCEPTION
Reply status, if no exception occured.
Field Value:
0

SYSTEM_EXCEPTION

public static final int SYSTEM_EXCEPTION
Reply status, system exception.
Field Value:
2

USER_EXCEPTION

public static final int USER_EXCEPTION
Reply status, user exception.
Field Value:
1

reply_status

public int reply_status
The status of this reply, holds one of the reply status constants.

request_id

public int request_id
The Id of request into response of which this reply has been sent.

Method Details

getStatusString

public String getStatusString()
Return the message status as a string.

read

public abstract void read(AbstractCdrInput in)
Reads the header from the stream.
Parameters:
in - a stream to read from.

toString

public String toString()
Returns a short string representation.
Overrides:
toString in interface Object
Returns:
a string representation.

write

public abstract void write(AbstractCdrOutput out)
Writes the header to the stream.
Parameters:
out - a stream to write into.

ReplyHeader.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.