home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / TRIAL / JBUILDER / JVISBRKR.Z / SampleClientInterceptor.java < prev    next >
Encoding:
Java Source  |  1998-05-08  |  2.3 KB  |  68 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.GIOP.*;
  24.  
  25. public class SampleClientInterceptor extends SampleInterceptor implements ClientInterceptor
  26. {
  27.     public SampleClientInterceptor()
  28.     {
  29.         super("ClntINT");
  30.     }
  31.  
  32.     public void prepare_request(RequestHeaderHolder hdr, Closure closure)
  33.     {
  34.         print("prepare_request");
  35.     }
  36.  
  37.     public org.omg.CORBA.portable.OutputStream send_request(RequestHeader hdr, org.omg.CORBA.portable.OutputStream buf, Closure closure)
  38.     {
  39.         print("send_request");
  40.         return null;
  41.     }
  42.  
  43.     public void send_request_failed(RequestHeader hdr, org.omg.CORBA.Environment env, Closure closure)
  44.     {
  45.         print("send_request_failed");
  46.     }
  47.  
  48.     public void send_request_succeeded(RequestHeader hdr, Closure closure)
  49.     {
  50.         print("send_request_succeeded");
  51.     }
  52.  
  53.     public void receive_reply(ReplyHeader hdr, org.omg.CORBA.portable.InputStream buf, org.omg.CORBA.Environment env, Closure closure)
  54.     {
  55.         print("receive_reply");
  56.     }
  57.  
  58.     public void receive_reply_failed(int req_id, org.omg.CORBA.Environment env, Closure closure)
  59.     {
  60.         print("receive_reply_failed");
  61.     }
  62.  
  63.     public void exception_occurred(int req_id, org.omg.CORBA.Environment env, Closure closure)
  64.     {
  65.         print("exception_occurred");
  66.     }
  67. }
  68.