1. /*
  2. * @(#)PINoOpHandlerImpl.java 1.6 04/06/21
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.impl.interceptors;
  8. import java.io.IOException;
  9. import org.omg.CORBA.Any;
  10. import org.omg.CORBA.NVList;
  11. import org.omg.IOP.CodecFactory;
  12. import org.omg.CORBA.portable.RemarshalException;
  13. import org.omg.PortableInterceptor.ObjectReferenceTemplate ;
  14. import org.omg.PortableInterceptor.ForwardRequest;
  15. import org.omg.PortableInterceptor.Interceptor;
  16. import org.omg.PortableInterceptor.PolicyFactory;
  17. import org.omg.PortableInterceptor.Current;
  18. import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName ;
  19. import com.sun.corba.se.pept.encoding.OutputObject;
  20. import com.sun.corba.se.spi.ior.ObjectKeyTemplate;
  21. import com.sun.corba.se.spi.oa.ObjectAdapter;
  22. import com.sun.corba.se.spi.orb.ORB;
  23. import com.sun.corba.se.spi.protocol.PIHandler;
  24. import com.sun.corba.se.spi.protocol.ForwardException;
  25. import com.sun.corba.se.spi.protocol.CorbaMessageMediator;
  26. import com.sun.corba.se.impl.corba.RequestImpl;
  27. import com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage;
  28. /**
  29. * This is No-Op implementation of PIHandler. It is used in ORBConfigurator
  30. * to initialize a piHandler before the Persistent Server Activation. This
  31. * PIHandler implementation will be replaced by the real PIHandler in
  32. * ORB.postInit( ) call.
  33. */
  34. public class PINoOpHandlerImpl implements PIHandler
  35. {
  36. public PINoOpHandlerImpl( ) {
  37. }
  38. public void initialize() {
  39. }
  40. public void destroyInterceptors() {
  41. }
  42. public void objectAdapterCreated( ObjectAdapter oa )
  43. {
  44. }
  45. public void adapterManagerStateChanged( int managerId,
  46. short newState )
  47. {
  48. }
  49. public void adapterStateChanged( ObjectReferenceTemplate[]
  50. templates, short newState )
  51. {
  52. }
  53. public void disableInterceptorsThisThread() {
  54. }
  55. public void enableInterceptorsThisThread() {
  56. }
  57. public void invokeClientPIStartingPoint()
  58. throws RemarshalException
  59. {
  60. }
  61. public Exception invokeClientPIEndingPoint(
  62. int replyStatus, Exception exception )
  63. {
  64. return null;
  65. }
  66. public void initiateClientPIRequest( boolean diiRequest ) {
  67. }
  68. public void cleanupClientPIRequest() {
  69. }
  70. public void setClientPIInfo(CorbaMessageMediator messageMediator)
  71. {
  72. }
  73. public void setClientPIInfo( RequestImpl requestImpl )
  74. {
  75. }
  76. final public void sendCancelRequestIfFinalFragmentNotSent()
  77. {
  78. }
  79. public void invokeServerPIStartingPoint()
  80. {
  81. }
  82. public void invokeServerPIIntermediatePoint()
  83. {
  84. }
  85. public void invokeServerPIEndingPoint( ReplyMessage replyMessage )
  86. {
  87. }
  88. public void setServerPIInfo( Exception exception ) {
  89. }
  90. public void setServerPIInfo( NVList arguments )
  91. {
  92. }
  93. public void setServerPIExceptionInfo( Any exception )
  94. {
  95. }
  96. public void setServerPIInfo( Any result )
  97. {
  98. }
  99. public void initializeServerPIInfo( CorbaMessageMediator request,
  100. ObjectAdapter oa, byte[] objectId, ObjectKeyTemplate oktemp )
  101. {
  102. }
  103. public void setServerPIInfo( java.lang.Object servant,
  104. String targetMostDerivedInterface )
  105. {
  106. }
  107. public void cleanupServerPIRequest() {
  108. }
  109. public void register_interceptor( Interceptor interceptor, int type )
  110. throws DuplicateName
  111. {
  112. }
  113. public Current getPICurrent( ) {
  114. return null;
  115. }
  116. public org.omg.CORBA.Policy create_policy(int type, org.omg.CORBA.Any val)
  117. throws org.omg.CORBA.PolicyError
  118. {
  119. return null;
  120. }
  121. public void registerPolicyFactory( int type, PolicyFactory factory ) {
  122. }
  123. public int allocateServerRequestId ()
  124. {
  125. return 0;
  126. }
  127. }