com.sun.xml.ws.db
Class DatabindingImpl

java.lang.Object
  extended by com.sun.xml.ws.db.DatabindingImpl
All Implemented Interfaces:
org.jvnet.ws.databinding.Databinding

public class DatabindingImpl
extends Object
implements Databinding, org.jvnet.ws.databinding.Databinding

WsRuntimeImpl is the databinding processor built on SEIModel


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jvnet.ws.databinding.Databinding
org.jvnet.ws.databinding.Databinding.Builder, org.jvnet.ws.databinding.Databinding.WSDLGenerator
 
Field Summary
(package private)  boolean clientConfig
           
(package private)  Codec codec
           
(package private)  OperationDispatcher operationDispatcher
           
(package private)  OperationDispatcher operationDispatcherNoWsdl
           
(package private)  MessageContextFactory packetFactory
           
(package private)  AbstractSEIModelImpl seiModel
           
(package private)  Map<Method,StubHandler> stubHandlers
           
(package private)  Map<Method,TieHandler> tieHandlers
           
(package private)  QNameMap<TieHandler> wsdlOpMap
           
 
Constructor Summary
DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config)
           
 
Method Summary
 org.jvnet.ws.databinding.JavaCallInfo createJavaCallInfo(Method method, Object[] args)
          Creates a new instance of a JavaCallInfo.
 void decode(InputStream in, String ct, Packet p)
           
 org.jvnet.ws.databinding.JavaCallInfo deserializeRequest(org.jvnet.ws.message.MessageContext message)
          Deserializes a request XML(SOAP) message to a JavaCallInfo instance representing a JAVA method call.
 JavaCallInfo deserializeRequest(Packet req)
           
 org.jvnet.ws.databinding.JavaCallInfo deserializeResponse(org.jvnet.ws.message.MessageContext message, org.jvnet.ws.databinding.JavaCallInfo call)
          Deserializes a response XML(SOAP) message to a JavaCallInfo instance representing the return value or exception of a JAVA method call.
 JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call)
           
 ContentType encode(Packet packet, OutputStream out)
           
 void freeze(WSDLPort port)
           
 void generateWSDL(WSDLGenInfo info)
          Gets the WebServiceFeatures of this webservice endpoint.
 ClientCallBridge getClientBridge(Method method)
           
(package private)  Codec getCodec()
           
 EndpointCallBridge getEndpointBridge(Packet req)
          Deserializes a request XML(SOAP) message to a JavaCallInfo instance representing a JAVA method call.
 WebServiceFeature[] getFeatures()
           
 MessageContextFactory getMessageContextFactory()
           
 SEIModel getModel()
           
 QName resolveOperationQName(Packet req)
           
 Packet serializeRequest(JavaCallInfo call)
           
 org.jvnet.ws.message.MessageContext serializeRequest(org.jvnet.ws.databinding.JavaCallInfo call)
          Serializes a JavaCallInfo instance representing a JAVA method call to a request XML(SOAP) message.
 Packet serializeResponse(JavaCallInfo call)
           
 org.jvnet.ws.message.MessageContext serializeResponse(org.jvnet.ws.databinding.JavaCallInfo call)
          Serializes a JavaCallInfo instance representing the return value or exception of a JAVA method call to a response XML(SOAP) message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

seiModel

AbstractSEIModelImpl seiModel

stubHandlers

Map<Method,StubHandler> stubHandlers

wsdlOpMap

QNameMap<TieHandler> wsdlOpMap

tieHandlers

Map<Method,TieHandler> tieHandlers

operationDispatcher

OperationDispatcher operationDispatcher

operationDispatcherNoWsdl

OperationDispatcher operationDispatcherNoWsdl

clientConfig

boolean clientConfig

codec

Codec codec

packetFactory

MessageContextFactory packetFactory
Constructor Detail

DatabindingImpl

public DatabindingImpl(DatabindingProviderImpl p,
                       DatabindingConfig config)
Method Detail

freeze

public void freeze(WSDLPort port)

getModel

public SEIModel getModel()

resolveOperationQName

public QName resolveOperationQName(Packet req)
                            throws DispatchException
Throws:
DispatchException

deserializeRequest

public JavaCallInfo deserializeRequest(Packet req)

deserializeResponse

public JavaCallInfo deserializeResponse(Packet res,
                                        JavaCallInfo call)

getFeatures

public WebServiceFeature[] getFeatures()

serializeRequest

public Packet serializeRequest(JavaCallInfo call)

serializeResponse

public Packet serializeResponse(JavaCallInfo call)

getClientBridge

public ClientCallBridge getClientBridge(Method method)

generateWSDL

public void generateWSDL(WSDLGenInfo info)
Description copied from interface: Databinding
Gets the WebServiceFeatures of this webservice endpoint.


getEndpointBridge

public EndpointCallBridge getEndpointBridge(Packet req)
                                     throws DispatchException
Description copied from interface: Databinding
Deserializes a request XML(SOAP) message to a JavaCallInfo instance representing a JAVA method call.

Parameters:
req - the request message
Returns:
the JavaCallInfo representing a method call
Throws:
DispatchException

getCodec

Codec getCodec()

encode

public ContentType encode(Packet packet,
                          OutputStream out)
                   throws IOException
Throws:
IOException

decode

public void decode(InputStream in,
                   String ct,
                   Packet p)
            throws IOException
Throws:
IOException

createJavaCallInfo

public org.jvnet.ws.databinding.JavaCallInfo createJavaCallInfo(Method method,
                                                                Object[] args)
Description copied from interface: org.jvnet.ws.databinding.Databinding
Creates a new instance of a JavaCallInfo.

Specified by:
createJavaCallInfo in interface org.jvnet.ws.databinding.Databinding
Parameters:
method - The JAVA method
args - The parameter objects
Returns:
New instance of a JavaCallInfo

serializeRequest

public org.jvnet.ws.message.MessageContext serializeRequest(org.jvnet.ws.databinding.JavaCallInfo call)
Description copied from interface: org.jvnet.ws.databinding.Databinding
Serializes a JavaCallInfo instance representing a JAVA method call to a request XML(SOAP) message.

Specified by:
serializeRequest in interface org.jvnet.ws.databinding.Databinding
Parameters:
call - The JavaCallInfo representing a method call
Returns:
The request XML(SOAP) message

deserializeResponse

public org.jvnet.ws.databinding.JavaCallInfo deserializeResponse(org.jvnet.ws.message.MessageContext message,
                                                                 org.jvnet.ws.databinding.JavaCallInfo call)
Description copied from interface: org.jvnet.ws.databinding.Databinding
Deserializes a response XML(SOAP) message to a JavaCallInfo instance representing the return value or exception of a JAVA method call.

Specified by:
deserializeResponse in interface org.jvnet.ws.databinding.Databinding
call - The JavaCallInfo instance to be updated
Returns:
The JavaCallInfo updated with the return value or exception of a JAVA method call

deserializeRequest

public org.jvnet.ws.databinding.JavaCallInfo deserializeRequest(org.jvnet.ws.message.MessageContext message)
Description copied from interface: org.jvnet.ws.databinding.Databinding
Deserializes a request XML(SOAP) message to a JavaCallInfo instance representing a JAVA method call.

Specified by:
deserializeRequest in interface org.jvnet.ws.databinding.Databinding
Parameters:
message - The request message
Returns:
The JavaCallInfo representing a method call

serializeResponse

public org.jvnet.ws.message.MessageContext serializeResponse(org.jvnet.ws.databinding.JavaCallInfo call)
Description copied from interface: org.jvnet.ws.databinding.Databinding
Serializes a JavaCallInfo instance representing the return value or exception of a JAVA method call to a response XML(SOAP) message.

Specified by:
serializeResponse in interface org.jvnet.ws.databinding.Databinding
Parameters:
call - The JavaCallInfo representing the return value or exception of a JAVA method call
Returns:
The response XML(SOAP) message

getMessageContextFactory

public MessageContextFactory getMessageContextFactory()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.