|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.binding.soap.listener.incoming.RequestProcessor
public abstract class RequestProcessor
An abstract request processor. It is used by the external listener to handle incoming requests such as SOAP, REST... Created on 14 févr. 08
| Field Summary | |
|---|---|
protected javax.jbi.messaging.DeliveryChannel |
channel
|
protected org.ow2.petals.component.framework.AbstractComponent |
component
|
protected javax.jbi.messaging.MessageExchangeFactory |
exchangeFactory
|
protected java.util.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
RequestProcessor(org.ow2.petals.component.framework.AbstractComponent component,
javax.jbi.messaging.DeliveryChannel channel,
java.util.logging.Logger log)
|
|
| Method Summary | |
|---|---|
protected void |
closeMessageExchange(javax.jbi.messaging.MessageExchange exchange)
|
protected javax.jbi.messaging.MessageExchange |
createMessageExchange(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes)
Create a message exchange matching a pattern specified in CDKExtensions. |
protected javax.jbi.messaging.MessageExchange |
createMessageExchange(org.apache.axis2.context.MessageContext inContext,
javax.xml.namespace.QName operation,
PetalsAxisService axisService)
Create the JBI message exchange |
protected javax.security.auth.Subject |
createSecuritySubject(org.apache.axis2.context.MessageContext messageContext)
Create the security Subject from the MessageContext. |
protected abstract java.lang.String |
getProcessorName()
Get the processor name. |
protected void |
handleFault(javax.jbi.messaging.MessageExchange exchange,
org.apache.axis2.context.MessageContext outMessage,
org.apache.axiom.soap.SOAPFactory factory)
|
protected void |
handleResponseAttachments(org.apache.axiom.soap.SOAPFactory soapFactory,
javax.jbi.messaging.NormalizedMessage nm,
org.apache.axis2.context.MessageContext outMessage)
Put the NormalizedMessage attachments in the output Axis2
MessageContext. |
protected boolean |
isSecuredService(PetalsAxisService service)
Check is the service is secured ie rampart module has been engaged by the service unit. |
protected abstract org.apache.axis2.context.MessageContext |
process(org.apache.axis2.context.MessageContext inContext,
org.apache.axiom.soap.SOAPFactory soapfactory)
Process the request |
protected org.apache.axis2.context.MessageContext |
processJBIResponse(javax.jbi.messaging.MessageExchange exchange,
org.apache.axis2.context.MessageContext inMessage,
org.apache.axiom.soap.SOAPFactory factory)
Process the JBI response. |
protected javax.xml.namespace.QName |
retrieveOperationFromSOAPBody(org.apache.axis2.context.MessageContext message)
Get the operation from the message context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.logging.Logger logger
protected javax.jbi.messaging.DeliveryChannel channel
protected org.ow2.petals.component.framework.AbstractComponent component
protected javax.jbi.messaging.MessageExchangeFactory exchangeFactory
| Constructor Detail |
|---|
public RequestProcessor(org.ow2.petals.component.framework.AbstractComponent component,
javax.jbi.messaging.DeliveryChannel channel,
java.util.logging.Logger log)
component - channel - log - | Method Detail |
|---|
protected abstract org.apache.axis2.context.MessageContext process(org.apache.axis2.context.MessageContext inContext,
org.apache.axiom.soap.SOAPFactory soapfactory)
throws org.apache.axis2.AxisFault
inContext - performanceNotification -
org.apache.axis2.AxisFault
protected org.apache.axis2.context.MessageContext processJBIResponse(javax.jbi.messaging.MessageExchange exchange,
org.apache.axis2.context.MessageContext inMessage,
org.apache.axiom.soap.SOAPFactory factory)
throws org.apache.axis2.AxisFault
exchange - JBI responsefactory - soap factory used to create body response
org.apache.axis2.AxisFault - with ERROR JBI status, or problem while creating response
protected javax.jbi.messaging.MessageExchange createMessageExchange(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes)
throws javax.jbi.messaging.MessagingException
consumes - The consumes
javax.jbi.messaging.MessagingException - if the message exchange can't be created
protected javax.jbi.messaging.MessageExchange createMessageExchange(org.apache.axis2.context.MessageContext inContext,
javax.xml.namespace.QName operation,
PetalsAxisService axisService)
throws org.apache.axis2.AxisFault
inContext - operation - axisService - performanceNotification - The performance notification whose the UID will be forwarded
to the service provider.
org.apache.axis2.AxisFaultprotected boolean isSecuredService(PetalsAxisService service)
service -
protected javax.security.auth.Subject createSecuritySubject(org.apache.axis2.context.MessageContext messageContext)
Subject from the MessageContext. TODO
: Check if there are security features in REST too.
messageContext -
Principal in the message context else return null;protected javax.xml.namespace.QName retrieveOperationFromSOAPBody(org.apache.axis2.context.MessageContext message)
message -
protected void handleFault(javax.jbi.messaging.MessageExchange exchange,
org.apache.axis2.context.MessageContext outMessage,
org.apache.axiom.soap.SOAPFactory factory)
throws org.apache.axis2.AxisFault
exchange - outMessage - factory -
org.apache.axis2.AxisFault
protected void handleResponseAttachments(org.apache.axiom.soap.SOAPFactory soapFactory,
javax.jbi.messaging.NormalizedMessage nm,
org.apache.axis2.context.MessageContext outMessage)
NormalizedMessage attachments in the output Axis2
MessageContext.
messageContext -
protected void closeMessageExchange(javax.jbi.messaging.MessageExchange exchange)
throws org.apache.axis2.AxisFault
exchange -
org.apache.axis2.AxisFaultprotected abstract java.lang.String getProcessorName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||