home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / TRIAL / JBUILDER / JVISBRKR.Z / SampleServerInterceptor.java < prev    next >
Encoding:
Java Source  |  1998-05-08  |  3.1 KB  |  93 lines

  1. /*
  2.  * Copyright (c) 1997-1998 Borland International, Inc. All Rights Reserved.
  3.  * 
  4.  * This SOURCE CODE FILE, which has been provided by Borland as part
  5.  * of a Borland product for use ONLY by licensed users of the product,
  6.  * includes CONFIDENTIAL and PROPRIETARY information of Borland.  
  7.  *
  8.  * USE OF THIS SOFTWARE IS GOVERNED BY THE TERMS AND CONDITIONS 
  9.  * OF THE LICENSE STATEMENT AND LIMITED WARRANTY FURNISHED WITH
  10.  * THE PRODUCT.
  11.  *
  12.  * IN PARTICULAR, YOU WILL INDEMNIFY AND HOLD BORLAND, ITS RELATED
  13.  * COMPANIES AND ITS SUPPLIERS, HARMLESS FROM AND AGAINST ANY CLAIMS
  14.  * OR LIABILITIES ARISING OUT OF THE USE, REPRODUCTION, OR DISTRIBUTION
  15.  * OF YOUR PROGRAMS, INCLUDING ANY CLAIMS OR LIABILITIES ARISING OUT OF
  16.  * OR RESULTING FROM THE USE, MODIFICATION, OR DISTRIBUTION OF PROGRAMS
  17.  * OR FILES CREATED FROM, BASED ON, AND/OR DERIVED FROM THIS SOURCE
  18.  * CODE FILE.
  19.  */
  20. package visibroker.samples.interceptor.sample;
  21.  
  22. import com.visigenic.vbroker.interceptor.*;
  23. import com.visigenic.vbroker.IOP.*;
  24. import com.visigenic.vbroker.GIOP.*;
  25. import org.omg.CORBA.portable.*;
  26.  
  27. public class SampleServerInterceptor extends SampleInterceptor implements ServerInterceptor
  28. {
  29.     public SampleServerInterceptor()
  30.     {
  31.         super("ServINT");
  32.     }
  33.  
  34.     public IOR locate(int req_id, byte[] object_key, Closure closure)
  35.     {
  36.         print("locate");
  37.         return null;
  38.     }
  39.  
  40.     public void locate_succeeded(int req_id, Closure closure)
  41.     {
  42.         print("locate_succeeded");
  43.     }
  44.  
  45.     public void locate_forwarded(int req_id, IORHolder forward_ior, Closure closure)
  46.     {
  47.         print("locate_forwarded");
  48.     }
  49.  
  50.     public IOR locate_failed(int req_id, byte[] object_key, Closure closure)
  51.     {
  52.         print("locate_failed");
  53.         return null;
  54.     }
  55.  
  56.     public InputStream receive_request(RequestHeader hdr, org.omg.CORBA.ObjectHolder target, InputStream buf, Closure closure)
  57.     {
  58.         print("receive_request");
  59.         return null;
  60.     }
  61.  
  62.     public void prepare_reply(RequestHeader hdr, ReplyHeaderHolder reply, org.omg.CORBA.Object target, Closure closure)
  63.     {
  64.         print("prepare_reply");
  65.     }
  66.  
  67.     public org.omg.CORBA.portable.OutputStream send_reply(RequestHeader reqHdr, ReplyHeader hdr, org.omg.CORBA.Object target, OutputStream buf, org.omg.CORBA.Environment env, Closure closure)
  68.     {
  69.         print("send_reply");
  70.         return null;
  71.     }
  72.  
  73.     public void send_reply_failed(RequestHeader reqHdr, ReplyHeader replyHdr, org.omg.CORBA.Object target, org.omg.CORBA.Environment env, Closure closure)
  74.     {
  75.         print("send_reply_failed");
  76.     }
  77.  
  78.     public void request_completed(RequestHeader reqHdr, org.omg.CORBA.Object target, Closure closure)
  79.     {
  80.         print("request_completed");
  81.     }
  82.  
  83.     public void shutdown(com.visigenic.vbroker.interceptor.ServerInterceptorPackage.ShutdownReason reason)
  84.     {
  85.         print("shutdown");
  86.     }
  87.  
  88.     public void exception_occurred(RequestHeader reqHdr, org.omg.CORBA.Environment env, Closure closure)
  89.     {
  90.         print("exception_occurred");
  91.     }
  92. }
  93.