summaryrefslogtreecommitdiff
path: root/java/src/Ice/Request.java
blob: a9e7a07080e05162ce0607824311cdb3ccea08e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// **********************************************************************
//
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

package Ice;

/**
 * Interface for incoming requests.
 **/
public interface Request
{   
    /**
     * Returns whether this request is collocated.
     *
     * @return <code>true</code> if the invocation was made via proxy created by the same communicator
     * that hosts the target's object adapter; <code>false</code>, otherwise.
     **/
    boolean isCollocated();

    /**
     * Returns the <code>Current</code> object for this the request.
     *
     * @return The <code>Current</code> object for this request.
     **/
    Current getCurrent();
}