|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Protocol
Provides an interface for creating a processor specific to a messaging protocol.
Method Summary | |
---|---|
org.jibx.ws.transport.MessageProperties |
buildMessageProperties(String opname,
MessageOptions msgOptions)
Returns message specific properties for an outbound message. |
Client |
createClient(String location,
IBindingFactory factory,
MessageOptions options)
Create a client to connect to a service at the specified location using this protocol. |
org.jibx.ws.process.Processor |
createProcessor()
Returns a processor for this protocol. |
org.jibx.ws.process.Processor |
createProcessor(ExchangeContext exchangeContext)
Returns a processor for this protocol, configured according to the specified exchange context. |
org.jibx.ws.server.MediaTypeMapper |
getMediaTypeMapper()
Returns a mapper for mapping media type code to media types for this protocol. |
String |
getName()
Returns the protocol name. |
String |
getOperationName(org.jibx.ws.transport.InConnection conn)
Get the operation name for a request. |
org.jibx.ws.server.ServiceFactory |
getServiceFactory()
Returns a factory that creates services for this protocol. |
Method Detail |
---|
org.jibx.ws.process.Processor createProcessor()
org.jibx.ws.process.Processor createProcessor(ExchangeContext exchangeContext)
exchangeContext
- provides the context for the message exchange that the processor is to perform
Client createClient(String location, IBindingFactory factory, MessageOptions options) throws WsBindingException, WsConfigurationException
location
- the location of the servicefactory
- the factory containing bindings for the outbound and inbound message body. Bindings are only
required for non-empty outbound or inbound bodies. May also be used for protocol specific details. See the
relevant WsClient
subclass for details.options
- options for outbound message
WsConfigurationException
- on configuration exception, for instance the location is invalid.
WsBindingException
- if client cannot be created due to an error with the JiBX bindingsString getName()
org.jibx.ws.server.ServiceFactory getServiceFactory()
org.jibx.ws.server.MediaTypeMapper getMediaTypeMapper()
org.jibx.ws.transport.MessageProperties buildMessageProperties(String opname, MessageOptions msgOptions) throws WsConfigurationException
opname
- operation name (null
if unspecified)msgOptions
- options for media types of the message
WsConfigurationException
- on configuration errorString getOperationName(org.jibx.ws.transport.InConnection conn)
conn
- input connection used for request
null
if not supplied
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |