|
||||||||||
| 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
| Constructor Summary | |
|---|---|
RequestProcessor(org.ow2.petals.component.framework.AbstractComponent component,
javax.jbi.messaging.DeliveryChannel channel,
org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<IncomingServiceKey> probeWebServiceInvocations,
org.ow2.petals.probes.KeyedResponseTimeProbe<IncomingServiceKey> probeHttpRequestsInvocationsResponseTime,
Logger log)
The constructor. |
|
| Method Summary | |
|---|---|
protected void |
closeMessageExchange(javax.jbi.messaging.MessageExchange exchange)
|
protected javax.jbi.messaging.MessageExchange |
createMessageExchange(org.ow2.petals.component.framework.jbidescriptor.generated.MEPType mep)
Create a message exchange matching a specified mep. |
protected javax.jbi.messaging.MessageExchange |
createMessageExchange(org.apache.axis2.context.MessageContext inContext,
QName operation,
org.ow2.petals.component.framework.jbidescriptor.generated.MEPType mep,
PetalsAxisService axisService)
Create the JBI message exchange. |
protected Subject |
createSecuritySubject(org.apache.axis2.context.MessageContext messageContext)
Create the security Subject from the MessageContext. |
javax.jbi.messaging.DeliveryChannel |
getChannel()
Get the channel. |
Logger |
getLogger()
Get the logger. |
protected abstract 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 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 |
| Constructor Detail |
|---|
public RequestProcessor(org.ow2.petals.component.framework.AbstractComponent component,
javax.jbi.messaging.DeliveryChannel channel,
org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<IncomingServiceKey> probeWebServiceInvocations,
org.ow2.petals.probes.KeyedResponseTimeProbe<IncomingServiceKey> probeHttpRequestsInvocationsResponseTime,
Logger log)
component - the componentchannel - the channelprobeWebServiceInvocations - The probe counting service invocationslog - the logger| Method Detail |
|---|
protected final void closeMessageExchange(javax.jbi.messaging.MessageExchange exchange)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
protected final javax.jbi.messaging.MessageExchange createMessageExchange(org.ow2.petals.component.framework.jbidescriptor.generated.MEPType mep)
throws javax.jbi.messaging.MessagingException
mep - the mep
javax.jbi.messaging.MessagingException - if the message exchange can't be created
protected final javax.jbi.messaging.MessageExchange createMessageExchange(org.apache.axis2.context.MessageContext inContext,
QName operation,
org.ow2.petals.component.framework.jbidescriptor.generated.MEPType mep,
PetalsAxisService axisService)
throws org.apache.axis2.AxisFault,
javax.jbi.messaging.MessagingException
inContext - the SOAP messageoperation - the operationmep - the mepaxisService - the axis service into petals
org.apache.axis2.AxisFault - the axis fault
javax.jbi.messaging.MessagingExceptionprotected final Subject createSecuritySubject(org.apache.axis2.context.MessageContext messageContext)
Subject from the MessageContext.
messageContext - the message context
Principal in the message context else return null;public final javax.jbi.messaging.DeliveryChannel getChannel()
public final Logger getLogger()
protected abstract String getProcessorName()
protected final void handleFault(javax.jbi.messaging.MessageExchange exchange,
org.apache.axis2.context.MessageContext outMessage,
org.apache.axiom.soap.SOAPFactory factory)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
protected final void handleResponseAttachments(org.apache.axiom.soap.SOAPFactory soapFactory,
javax.jbi.messaging.NormalizedMessage nm,
org.apache.axis2.context.MessageContext outMessage)
throws UnsupportedEncodingException
NormalizedMessage attachments in the output Axis2
MessageContext.
soapFactory - the SOAP factorynm - the normalized messageoutMessage - the SOAP message
UnsupportedEncodingException - the unsupported encoding exceptionprotected final boolean isSecuredService(PetalsAxisService service)
service - the axis service into petals
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,
UnsupportedEncodingException
inContext - the SOAP contextsoapfactory - the SOAP factory
org.apache.axis2.AxisFault - the axis fault
UnsupportedEncodingException - the unsupported encoding exception
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,
UnsupportedEncodingException
exchange - JBI responseinMessage - the SOAP messagefactory - soap factory used to create body response
org.apache.axis2.AxisFault - with ERROR JBI status, or problem while creating response
UnsupportedEncodingException - the unsupported encoding exceptionprotected final QName retrieveOperationFromSOAPBody(org.apache.axis2.context.MessageContext message)
message - the SOAP message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||