jdk/src/share/classes/sun/rmi/transport/Transport.java
author xdono
Wed, 02 Jul 2008 12:55:45 -0700
changeset 715 f16baef3a20e
parent 51 6fe31bc95bbc
child 5506 202f599c92aa
permissions -rw-r--r--
6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
715
f16baef3a20e 6719955: Update copyright year
xdono
parents: 51
diff changeset
     2
 * Copyright 1996-2008 Sun Microsystems, Inc.  All Rights Reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.rmi.transport;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.io.IOException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.io.ObjectOutput;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.rmi.MarshalException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.rmi.NoSuchObjectException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.rmi.Remote;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.rmi.RemoteException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import java.rmi.server.LogStream;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
import java.rmi.server.ObjID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import java.rmi.server.RemoteCall;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import java.rmi.server.RemoteServer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
import java.rmi.server.ServerNotActiveException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
import java.security.AccessControlContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
import sun.rmi.runtime.Log;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
import sun.rmi.server.Dispatcher;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
import sun.rmi.server.UnicastServerRef;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * Transport abstraction for enabling communication between different
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * VMs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * @author Ann Wollrath
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
public abstract class Transport {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    /** "transport" package log level */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    static final int logLevel = LogStream.parseLevel(getLogLevel());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    private static String getLogLevel() {
51
6fe31bc95bbc 6600143: Remove another 450 unnecessary casts
martin
parents: 2
diff changeset
    56
        return java.security.AccessController.doPrivileged(
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
            new sun.security.action.GetPropertyAction("sun.rmi.transport.logLevel"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    /* transport package log */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    static final Log transportLog =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        Log.getLog("sun.rmi.transport.misc", "transport", Transport.logLevel);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    /** References the current transport when a call is being serviced */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    private static final ThreadLocal currentTransport = new ThreadLocal();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    /** ObjID for DGCImpl */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    private static final ObjID dgcID = new ObjID(ObjID.DGC_ID);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * Returns a <I>Channel</I> that generates connections to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * endpoint <I>ep</I>. A Channel is an object that creates and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * manages connections of a particular type to some particular
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * address space.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     * @param ep the endpoint to which connections will be generated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * @return the channel or null if the transport cannot
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * generate connections to this endpoint
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    public abstract Channel getChannel(Endpoint ep);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * Removes the <I>Channel</I> that generates connections to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * endpoint <I>ep</I>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    public abstract void free(Endpoint ep);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * Export the object so that it can accept incoming calls.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    public void exportObject(Target target) throws RemoteException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        target.setExportedTransport(this);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        ObjectTable.putTarget(target);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * Invoked when an object that was exported on this transport has
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * become unexported, either by being garbage collected or by
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * being explicitly unexported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    protected void targetUnexported() { }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * Returns the current transport if a call is being serviced, otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * returns null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    static Transport currentTransport() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        return (Transport) currentTransport.get();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * Verify that the current access control context has permission to accept
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * the connection being dispatched by the current thread.  The current
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * access control context is passed as a parameter to avoid the overhead of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * an additional call to AccessController.getContext.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    protected abstract void checkAcceptPermission(AccessControlContext acc);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * Service an incoming remote call. When a message arrives on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * connection indicating the beginning of a remote call, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * threads are required to call the <I>serviceCall</I> method of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * their transport.  The default implementation of this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * locates and calls the dispatcher object.  Ordinarily a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * transport implementation will not need to override this method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * At the entry to <I>tr.serviceCall(conn)</I>, the connection's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * input stream is positioned at the start of the incoming
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * message.  The <I>serviceCall</I> method processes the incoming
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * remote invocation and sends the result on the connection's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * output stream.  If it returns "true", then the remote
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * invocation was processed without error and the transport can
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * cache the connection.  If it returns "false", a protocol error
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * occurred during the call, and the transport should destroy the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * connection.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    public boolean serviceCall(final RemoteCall call) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
            /* read object id */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
            final Remote impl;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
            ObjID id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
                id = ObjID.read(call.getInputStream());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
            } catch (java.io.IOException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                throw new MarshalException("unable to read objID", e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
            /* get the remote object */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
            Transport transport = id.equals(dgcID) ? null : this;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
            Target target =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                ObjectTable.getTarget(new ObjectEndpoint(id, transport));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            if (target == null || (impl = target.getImpl()) == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                throw new NoSuchObjectException("no such object in table");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
            final Dispatcher disp = target.getDispatcher();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
            target.incrementCallCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
                /* call the dispatcher */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                transportLog.log(Log.VERBOSE, "call dispatcher");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                final AccessControlContext acc =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                    target.getAccessControlContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                ClassLoader ccl = target.getContextClassLoader();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                Thread t = Thread.currentThread();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                ClassLoader savedCcl = t.getContextClassLoader();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                    t.setContextClassLoader(ccl);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                    currentTransport.set(this);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                    try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                        java.security.AccessController.doPrivileged(
51
6fe31bc95bbc 6600143: Remove another 450 unnecessary casts
martin
parents: 2
diff changeset
   174
                            new java.security.PrivilegedExceptionAction<Void>() {
6fe31bc95bbc 6600143: Remove another 450 unnecessary casts
martin
parents: 2
diff changeset
   175
                            public Void run() throws IOException {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
                                checkAcceptPermission(acc);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
                                disp.dispatch(impl, call);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
                                return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                        }, acc);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
                    } catch (java.security.PrivilegedActionException pae) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                        throw (IOException) pae.getException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
                } finally {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
                    t.setContextClassLoader(savedCcl);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                    currentTransport.set(null);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
            } catch (IOException ex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
                transportLog.log(Log.BRIEF,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
                                 "exception thrown by dispatcher: ", ex);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
                return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
            } finally {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
                target.decrementCallCount();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        } catch (RemoteException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
            // if calls are being logged, write out exception
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
            if (UnicastServerRef.callLog.isLoggable(Log.BRIEF)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                // include client host name if possible
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
                String clientHost = "";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                    clientHost = "[" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                        RemoteServer.getClientHost() + "] ";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
                } catch (ServerNotActiveException ex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
                String message = clientHost + "exception: ";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
                UnicastServerRef.callLog.log(Log.BRIEF, message, e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            /* We will get a RemoteException if either a) the objID is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
             * not readable, b) the target is not in the object table, or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
             * c) the object is in the midst of being unexported (note:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
             * NoSuchObjectException is thrown by the incrementCallCount
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
             * method if the object is being unexported).  Here it is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
             * relatively safe to marshal an exception to the client
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
             * since the client will not have seen a return value yet.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
             */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
                ObjectOutput out = call.getResultStream(false);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
                UnicastServerRef.clearStackTraces(e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
                out.writeObject(e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
                call.releaseOutputStream();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
            } catch (IOException ie) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
                transportLog.log(Log.BRIEF,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
                    "exception thrown marshalling exception: ", ie);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
        return true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
}