summaryrefslogtreecommitdiff
path: root/java/src/Ice/Request.java
blob: a0d2b0456a89d2c7dc06be5cf55709ac0d73bb83 (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-2014 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 {@link Current} object for this the request.
     *
     * @return The {@link Current} object for this request.
     **/
    Current getCurrent();
}