examples.webservices.handler.nocomponent
Class EchoStringHandlerjava.lang.Object | +--weblogic.webservice.GenericHandler | +--examples.webservices.handler.nocomponent.EchoStringHandlerAll Implemented Interfaces: javax.xml.rpc.handler.Handler
public final class EchoStringHandler extends weblogic.webservice.GenericHandler Class that implements the
weblogic.webservice.GenericHandler
abstract class. TheGenericHandler
class implements thejavax.xml.rpc.handler.Handler
interface.This class accesses the SOAP request message. Because the Web service does not use a backend component, the class creates a SOAP response message that is sent back to the client application that invoked it.
The class only implements the
handleRequest
andhandleResponse
methods - it does not implement the init,destroy
,handleFault
, andgetHeaders
methods.
Copyright (c) 2003 by BEA Systems. All Rights Reserved.
Constructor Summary
EchoStringHandler()
Method Summary
boolean handleRequest(javax.xml.rpc.handler.MessageContext messageContext)
Specifies that when the Web service receives the SOAP request message, a message be logged to the log file.boolean handleResponse(javax.xml.rpc.handler.MessageContext messageContext)
Creates a SOAP response message.
Methods inherited from class weblogic.webservice.GenericHandler destroy, getHandlerInfo, getHeaders, handleFault, init
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
EchoStringHandler
public EchoStringHandler()
Method Detail
handleRequest
public boolean handleRequest(javax.xml.rpc.handler.MessageContext messageContext)Specifies that when the Web service receives the SOAP request message, a message be logged to the log file.
Specified by: handleRequest in interface javax.xml.rpc.handler.Handler
Overrides: handleRequest in class weblogic.webservice.GenericHandler
handleResponse
public boolean handleResponse(javax.xml.rpc.handler.MessageContext messageContext)Creates a SOAP response message. This is necessary because the Web service does not invoke a backend component.
Specified by: handleResponse in interface javax.xml.rpc.handler.Handler
Overrides: handleResponse in class weblogic.webservice.GenericHandler