public void registerOperationContext(MessageContext msgContext, OperationContext operationContext) throws AxisFault { msgContext.setAxisOperation(this); msgContext.getConfigurationContext().registerOperationContext(msgContext.getMessageID(), operationContext); operationContext.addMessageContext(msgContext); msgContext.setOperationContext(operationContext); if (operationContext.isComplete()) { operationContext.cleanup(); } }
/** * Create a MessageContext, and notify any registered ContextListener. * * @return a new MessageContext */ public MessageContext createMessageContext() { MessageContext msgCtx = new MessageContext(this); contextCreated(msgCtx); return msgCtx; }
public OperationContext createOperationContext(AxisOperation axisOp) { OperationContext ctx = new OperationContext(axisOp, this); configContext.contextCreated(ctx); return ctx; }
private void setDoingMTOM(boolean value) { if (value) { m_msgCtx.getConfigurationContext().setProperty( org.apache.axis2.Constants.Configuration.ENABLE_MTOM, org.apache.axis2.Constants.VALUE_TRUE); } else { m_msgCtx.getConfigurationContext().setProperty( org.apache.axis2.Constants.Configuration.ENABLE_MTOM, org.apache.axis2.Constants.VALUE_FALSE); } }
public void setDoingGET(boolean b) { if(b) { axis2MessageContext.setDoingREST(b); axis2MessageContext.setProperty(Constants.Configuration.HTTP_METHOD, Constants.Configuration.HTTP_METHOD_GET); } else { axis2MessageContext.removeProperty(Constants.Configuration.HTTP_METHOD); } }
//this is the incoming message context MessageContext inMessageContext = MessageContext.getCurrentMessageContext(); OperationContext operationContext = inMessageContext.getOperationContext(); //this is the outgoing message context MessageContext outMessageContext = operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
public void registerMessageContext(MessageContext msgContext, OperationContext operationContext) throws AxisFault { msgContext.setAxisOperation(this); operationContext.addMessageContext(msgContext); msgContext.setOperationContext(operationContext); if (operationContext.isComplete()) { operationContext.cleanup(); } }
/** * same as OutInAxisOperationClient */ public MessageContext getMessageContext(String messageLabel) throws AxisFault { return oc.getMessageContext(messageLabel); }
/** * The position of the current EPR * * @param currentEPR The current position */ public void setCurrentEndpointIndex(int currentEPR) { this.currentEPR = currentEPR; cfgCtx.setNonReplicableProperty(CURRENT_EPR_PROP_KEY, currentEPR); }
/** * Create a ServiceGroupContext for the specified service group, and notify any registered * ContextListener. * * @param serviceGroup an AxisServiceGroup * @return a new ServiceGroupContext */ public ServiceGroupContext createServiceGroupContext(AxisServiceGroup serviceGroup) { ServiceGroupContext sgCtx = new ServiceGroupContext(this, serviceGroup); contextCreated(sgCtx); return sgCtx; }
/** * Initializes modules and creates Transports. * * @param configContext ConfigurationContext */ private static void init(ConfigurationContext configContext) { initModules(configContext); initTransportSenders(configContext); }
public AxisService getAxisService() { if (DEBUG_ENABLED) { checkActivateWarning("getAxisService"); } return axisService; }
/** * Gets the default configuration context by using Axis2.xml in the classpath * * @return Returns ConfigurationContext. */ public static ConfigurationContext createDefaultConfigurationContext() throws Exception { return createBasicConfigurationContext(DeploymentConstants.AXIS2_CONFIGURATION_RESOURCE); }
/** * Create a MessageContext, and notify any registered ContextListener. * * @return a new MessageContext */ public MessageContext createMessageContext() { MessageContext msgCtx = new MessageContext(this); contextCreated(msgCtx); return msgCtx; }
public void registerOperationContext(MessageContext msgContext, OperationContext operationContext) throws AxisFault { msgContext.setAxisOperation(this); msgContext.getConfigurationContext().registerOperationContext(msgContext.getMessageID(), operationContext); operationContext.addMessageContext(msgContext); msgContext.setOperationContext(operationContext); if (operationContext.isComplete()) { operationContext.cleanup(); } }
public void registerMessageContext(MessageContext msgContext, OperationContext operationContext) throws AxisFault { msgContext.setAxisOperation(this); operationContext.addMessageContext(msgContext); msgContext.setOperationContext(operationContext); if (operationContext.isComplete()) { operationContext.cleanup(); } }
public OperationContext createOperationContext(AxisOperation axisOp) { OperationContext ctx = new OperationContext(axisOp, this); configContext.contextCreated(ctx); return ctx; }
/** * Create a ServiceGroupContext for the specified service group, and notify any registered * ContextListener. * * @param serviceGroup an AxisServiceGroup * @return a new ServiceGroupContext */ public ServiceGroupContext createServiceGroupContext(AxisServiceGroup serviceGroup) { ServiceGroupContext sgCtx = new ServiceGroupContext(this, serviceGroup); contextCreated(sgCtx); return sgCtx; }
public ArrayList<Handler> getExecutionChain() { if (DEBUG_ENABLED) { checkActivateWarning("getExecutionChain"); } return executionChain; }
public OperationContext getOperationContext() { if (DEBUG_ENABLED) { checkActivateWarning("getOperationContext"); } return operationContext; }