| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <title>Handler</title> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Handler"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../javax/xml/rpc/handler/GenericHandler.html" title="class in javax.xml.rpc.handler"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../javax/xml/rpc/handler/HandlerChain.html" title="interface in javax.xml.rpc.handler"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?javax/xml/rpc/handler/Handler.html" target="_top">Frames</a></li> |
| <li><a href="Handler.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">javax.xml.rpc.handler</div> |
| <h2 title="Interface Handler" class="title">Interface Handler</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Known Implementing Classes:</dt> |
| <dd><a href="../../../../javax/xml/rpc/handler/GenericHandler.html" title="class in javax.xml.rpc.handler">GenericHandler</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public interface <span class="typeNameLabel">Handler</span></pre> |
| <div class="block">The <code>javax.xml.rpc.handler.Handler</code> interface is |
| required to be implemented by a SOAP message handler. The |
| <code>handleRequest</code>, <code>handleResponse</code> |
| and <code>handleFault</code> methods for a SOAP message |
| handler get access to the <code>SOAPMessage</code> from the |
| <code>SOAPMessageContext</code>. The implementation of these |
| methods can modify the <code>SOAPMessage</code> including the |
| headers and body elements.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/rpc/handler/Handler.html#destroy--">destroy</a></span>()</code> |
| <div class="block">The <code>destroy</code> method indicates the end of lifecycle |
| for a Handler instance.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>javax.xml.namespace.QName[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/rpc/handler/Handler.html#getHeaders--">getHeaders</a></span>()</code> |
| <div class="block">Gets the header blocks that can be processed by this Handler |
| instance.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/rpc/handler/Handler.html#handleFault-javax.xml.rpc.handler.MessageContext-">handleFault</a></span>(<a href="../../../../javax/xml/rpc/handler/MessageContext.html" title="interface in javax.xml.rpc.handler">MessageContext</a> context)</code> |
| <div class="block">The <code>handleFault</code> method processes the SOAP faults |
| based on the SOAP message processing model.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/rpc/handler/Handler.html#handleRequest-javax.xml.rpc.handler.MessageContext-">handleRequest</a></span>(<a href="../../../../javax/xml/rpc/handler/MessageContext.html" title="interface in javax.xml.rpc.handler">MessageContext</a> context)</code> |
| <div class="block">The <code>handleRequest</code> method processes the request |
| message.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/rpc/handler/Handler.html#handleResponse-javax.xml.rpc.handler.MessageContext-">handleResponse</a></span>(<a href="../../../../javax/xml/rpc/handler/MessageContext.html" title="interface in javax.xml.rpc.handler">MessageContext</a> context)</code> |
| <div class="block">The <code>handleResponse</code> method processes the response |
| SOAP message.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/rpc/handler/Handler.html#init-javax.xml.rpc.handler.HandlerInfo-">init</a></span>(<a href="../../../../javax/xml/rpc/handler/HandlerInfo.html" title="class in javax.xml.rpc.handler">HandlerInfo</a> config)</code> |
| <div class="block">The <code>init</code> method enables the Handler instance to |
| initialize itself.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="handleRequest-javax.xml.rpc.handler.MessageContext-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>handleRequest</h4> |
| <pre>boolean handleRequest(<a href="../../../../javax/xml/rpc/handler/MessageContext.html" title="interface in javax.xml.rpc.handler">MessageContext</a> context)</pre> |
| <div class="block">The <code>handleRequest</code> method processes the request |
| message.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>context</code> - <code>MessageContext</code> parameter provides |
| access to the request message.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>boolean Indicates the processing mode |
| <UL> |
| <LI>Return <code>true</code> to indicate continued |
| processing of the request handler chain. The |
| <code>HandlerChain</code> |
| takes the responsibility of invoking the next |
| entity. The next entity may be the next handler |
| in the <code>HandlerChain</code> or if this |
| handler is the last handler in the chain, the |
| next entity is the service endpoint object. |
| <LI>Return <code>false</code> to indicate blocking |
| of the request handler chain. In this case, |
| further processing of the request handler chain |
| is blocked and the target service endpoint is |
| not dispatched. The JAX-RPC runtime system takes |
| the responsibility of invoking the response |
| handler chain next with the SOAPMessageContext. |
| The Handler implementation class has the the |
| responsibility of setting the appropriate response |
| SOAP message in either handleRequest and/or |
| handleResponse method. In the default processing |
| model, the response handler chain starts processing |
| from the same Handler instance (that returned false) |
| and goes backward in the execution sequence. |
| </UL></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</a></code> - This exception indicates handler |
| specific runtime error. If JAXRPCException is thrown |
| by a handleRequest method, the HandlerChain |
| terminates the further processing of this handler |
| chain. On the server side, the HandlerChain |
| generates a SOAP fault that indicates that the |
| message could not be processed for reasons not |
| directly attributable to the contents of the |
| message itself but rather to a runtime error |
| during the processing of the message. On the |
| client side, the exception is propagated to |
| the client code</dd> |
| <dd><code><a href="../../../../javax/xml/rpc/soap/SOAPFaultException.html" title="class in javax.xml.rpc.soap">SOAPFaultException</a></code> - This indicates a SOAP fault. The Handler |
| implementation class has the the responsibility |
| of setting the SOAP fault in the SOAP message in |
| either handleRequest and/or handleFault method. |
| If SOAPFaultException is thrown by a server-side |
| request handler's handleRequest method, the |
| HandlerChain terminates the further processing |
| of the request handlers in this handler chain |
| and invokes the handleFault method on the |
| HandlerChain with the SOAP message context. Next, |
| the HandlerChain invokes the handleFault method |
| on handlers registered in the handler chain, |
| beginning with the Handler instance that threw |
| the exception and going backward in execution. The |
| client-side request handler's handleRequest method |
| should not throw the SOAPFaultException.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="handleResponse-javax.xml.rpc.handler.MessageContext-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>handleResponse</h4> |
| <pre>boolean handleResponse(<a href="../../../../javax/xml/rpc/handler/MessageContext.html" title="interface in javax.xml.rpc.handler">MessageContext</a> context)</pre> |
| <div class="block">The <code>handleResponse</code> method processes the response |
| SOAP message.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>context</code> - MessageContext parameter provides access to |
| the response SOAP message</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>boolean Indicates the processing mode |
| <UL> |
| <LI>Return <code>true</code> to indicate continued |
| processing ofthe response handler chain. The |
| HandlerChain invokes the <code>handleResponse</code> |
| method on the next <code>Handler</code> in |
| the handler chain. |
| <LI>Return <code>false</code> to indicate blocking |
| of the response handler chain. In this case, no |
| other response handlers in the handler chain |
| are invoked. |
| </UL></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</a></code> - Indicates handler specific runtime error. |
| If JAXRPCException is thrown by a handleResponse |
| method, the HandlerChain terminates the further |
| processing of this handler chain. On the server side, |
| the HandlerChain generates a SOAP fault that |
| indicates that the message could not be processed |
| for reasons not directly attributable to the contents |
| of the message itself but rather to a runtime error |
| during the processing of the message. On the client |
| side, the runtime exception is propagated to the |
| client code.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="handleFault-javax.xml.rpc.handler.MessageContext-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>handleFault</h4> |
| <pre>boolean handleFault(<a href="../../../../javax/xml/rpc/handler/MessageContext.html" title="interface in javax.xml.rpc.handler">MessageContext</a> context)</pre> |
| <div class="block">The <code>handleFault</code> method processes the SOAP faults |
| based on the SOAP message processing model.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>context</code> - MessageContext parameter provides access to |
| the SOAP message</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>boolean Indicates the processing mode |
| <UL> |
| <LI>Return <code>true</code> to indicate continued |
| processing of SOAP Fault. The HandlerChain invokes |
| the <code>handleFault</code> method on the |
| next <code>Handler</code> in the handler chain. |
| <LI>Return <code>false</code> to indicate end |
| of the SOAP fault processing. In this case, no |
| other handlers in the handler chain |
| are invoked. |
| </UL></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</a></code> - Indicates handler specific runtime error. |
| If JAXRPCException is thrown by a handleFault |
| method, the HandlerChain terminates the further |
| processing of this handler chain. On the server side, |
| the HandlerChain generates a SOAP fault that |
| indicates that the message could not be processed |
| for reasons not directly attributable to the contents |
| of the message itself but rather to a runtime error |
| during the processing of the message. On the client |
| side, the JAXRPCException is propagated to the |
| client code.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="init-javax.xml.rpc.handler.HandlerInfo-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>init</h4> |
| <pre>void init(<a href="../../../../javax/xml/rpc/handler/HandlerInfo.html" title="class in javax.xml.rpc.handler">HandlerInfo</a> config)</pre> |
| <div class="block">The <code>init</code> method enables the Handler instance to |
| initialize itself. The <code>init</code> method passes the |
| handler configuration as a <code>HandlerInfo</code> instance. |
| The HandlerInfo is used to configure the Handler (for example: |
| setup access to an external resource or service) during the |
| initialization. |
| |
| <p>In the init method, the Handler class may get access to |
| any resources (for example; access to a logging service or |
| database) and maintain these as part of its instance variables. |
| Note that these instance variables must not have any state |
| specific to the SOAP message processing performed in the |
| various handle method.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>config</code> - Configuration for the initialization of |
| this handler</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</a></code> - If initialization of the handler fails</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="destroy--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>destroy</h4> |
| <pre>void destroy()</pre> |
| <div class="block">The <code>destroy</code> method indicates the end of lifecycle |
| for a Handler instance. The Handler implementation class should |
| release its resources and perform cleanup in the implementation |
| of the <code>destroy</code> method.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</a></code> - If any error during destroy</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getHeaders--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getHeaders</h4> |
| <pre>javax.xml.namespace.QName[] getHeaders()</pre> |
| <div class="block">Gets the header blocks that can be processed by this Handler |
| instance.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Array of QNames of header blocks processed by this |
| handler instance. <code>QName</code> is the qualified |
| name of the outermost element of the Header block.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../javax/xml/rpc/handler/GenericHandler.html" title="class in javax.xml.rpc.handler"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../javax/xml/rpc/handler/HandlerChain.html" title="interface in javax.xml.rpc.handler"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?javax/xml/rpc/handler/Handler.html" target="_top">Frames</a></li> |
| <li><a href="Handler.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |