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 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; }
/** * Create a MessageContext, and notify any registered ContextListener. * * @return a new MessageContext */ public MessageContext createMessageContext() { MessageContext msgCtx = new MessageContext(this); contextCreated(msgCtx); return msgCtx; }
/** * Create a MessageContext, and notify any registered ContextListener. * * @return a new MessageContext */ public MessageContext createMessageContext() { MessageContext msgCtx = new MessageContext(this); contextCreated(msgCtx); return msgCtx; }
/** * Gets a service context. Creates a new one from AxisService. * There is no need to store service context inside serviceGroup * context as well. * * @param service the AxisService for which to get a context * @return Returns ServiceContext. * @throws AxisFault if something goes wrong */ public ServiceContext getServiceContext(AxisService service) throws AxisFault { AxisService axisService = axisServiceGroup.getService(service.getName()); if (axisService == null) { throw new AxisFault(Messages.getMessage("invalidserviceinagroup", service.getName(), axisServiceGroup.getServiceGroupName())); } if (serviceContextMap == null) { serviceContextMap = new HashMap<String, ServiceContext>(); } ServiceContext serviceContext = (ServiceContext) serviceContextMap.get(service.getName()); if (serviceContext == null) { serviceContext = new ServiceContext(service, this); getRootContext().contextCreated(serviceContext); serviceContextMap.put(service.getName(), serviceContext); } return serviceContext; }
/** * Gets a service context. Creates a new one from AxisService. * There is no need to store service context inside serviceGroup * context as well. * * @param service the AxisService for which to get a context * @return Returns ServiceContext. * @throws AxisFault if something goes wrong */ public ServiceContext getServiceContext(AxisService service) throws AxisFault { AxisService axisService = axisServiceGroup.getService(service.getName()); if (axisService == null) { throw new AxisFault(Messages.getMessage("invalidserviceinagroup", service.getName(), axisServiceGroup.getServiceGroupName())); } if (serviceContextMap == null) { serviceContextMap = new HashMap<String, ServiceContext>(); } ServiceContext serviceContext = (ServiceContext) serviceContextMap.get(service.getName()); if (serviceContext == null) { serviceContext = new ServiceContext(service, this); getRootContext().contextCreated(serviceContext); serviceContextMap.put(service.getName(), serviceContext); } return serviceContext; }