diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-09-15 19:42:39 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-09-15 19:42:39 +0000 |
commit | 926a34c0cde3bb59a64c6906442246015290c310 (patch) | |
tree | 247d19ba42bd29fb7b60d96ac936ca91d497357b /java/src/IceGridGUI/AdminRouter.java | |
parent | Merged fixes from 3.1 branch (diff) | |
download | ice-926a34c0cde3bb59a64c6906442246015290c310.tar.bz2 ice-926a34c0cde3bb59a64c6906442246015290c310.tar.xz ice-926a34c0cde3bb59a64c6906442246015290c310.zip |
dos2unix
Diffstat (limited to 'java/src/IceGridGUI/AdminRouter.java')
-rwxr-xr-x | java/src/IceGridGUI/AdminRouter.java | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/java/src/IceGridGUI/AdminRouter.java b/java/src/IceGridGUI/AdminRouter.java index 0e598a7e7fc..3f95bf9f6a9 100755 --- a/java/src/IceGridGUI/AdminRouter.java +++ b/java/src/IceGridGUI/AdminRouter.java @@ -1,55 +1,55 @@ -// **********************************************************************
-//
-// Copyright (c) 2003-2006 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 IceGridGUI;
-
-import IceGrid.*;
-
-class AdminRouter extends Ice.Blobject
-{
- public boolean ice_invoke(byte[] inParams,
- Ice.ByteSeqHolder outParams,
- Ice.Current current)
- {
-
- if(_admin == null)
- {
- throw new Ice.ObjectNotExistException(current.id,
- current.facet,
- current.operation);
- }
- else if(current.operation.equals("ice_id") ||
- current.operation.equals("ice_ids") ||
- current.operation.equals("ice_isA") ||
- current.operation.equals("ice_ping") ||
- current.operation.equals("getDefaultApplicationDescriptor"))
- {
-
- return _admin.ice_invoke(current.operation,
- current.mode,
- inParams, outParams,
- current.ctx);
- }
- else
- {
- //
- // Routing other operations could be a security risk
- //
- throw new Ice.OperationNotExistException(current.id,
- current.facet,
- current.operation);
- }
- }
-
- AdminRouter(AdminPrx admin)
- {
- _admin = admin;
- }
-
- private final AdminPrx _admin;
-}
+// ********************************************************************** +// +// Copyright (c) 2003-2006 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 IceGridGUI; + +import IceGrid.*; + +class AdminRouter extends Ice.Blobject +{ + public boolean ice_invoke(byte[] inParams, + Ice.ByteSeqHolder outParams, + Ice.Current current) + { + + if(_admin == null) + { + throw new Ice.ObjectNotExistException(current.id, + current.facet, + current.operation); + } + else if(current.operation.equals("ice_id") || + current.operation.equals("ice_ids") || + current.operation.equals("ice_isA") || + current.operation.equals("ice_ping") || + current.operation.equals("getDefaultApplicationDescriptor")) + { + + return _admin.ice_invoke(current.operation, + current.mode, + inParams, outParams, + current.ctx); + } + else + { + // + // Routing other operations could be a security risk + // + throw new Ice.OperationNotExistException(current.id, + current.facet, + current.operation); + } + } + + AdminRouter(AdminPrx admin) + { + _admin = admin; + } + + private final AdminPrx _admin; +} |