/** * Get the name associated with the service. * * @return The name String */ public String getServiceName() { String srvName = null; ServiceContext sc = (ServiceContext) getParent(); if (sc == null) { sc = metaParent; } if (sc != null) { srvName = sc.getName(); } return srvName; }
/** * Get the name associated with the service group. * * @return The name String */ public String getServiceGroupName() { String srvGroupName = null; ServiceContext sc = (ServiceContext) getParent(); if (sc == null) { sc = metaParent; } if (sc != null) { srvGroupName = sc.getGroupName(); } return srvGroupName; }
/** * Get the name associated with the service. * * @return The name String */ public String getServiceName() { String srvName = null; ServiceContext sc = (ServiceContext) getParent(); if (sc == null) { sc = metaParent; } if (sc != null) { srvName = sc.getName(); } return srvName; }
/** * Get the name associated with the service group. * * @return The name String */ public String getServiceGroupName() { String srvGroupName = null; ServiceContext sc = (ServiceContext) getParent(); if (sc == null) { sc = metaParent; } if (sc != null) { srvGroupName = sc.getGroupName(); } return srvGroupName; }
/** * @param context The OperationContext */ public void setOperationContext(OperationContext context) { // allow setting the fields to null // useful when extracting the messge context from the object graph operationContext = context; this.setParent(operationContext); if (operationContext != null) { if (serviceContext == null) { setServiceContext(operationContext.getServiceContext()); } else { if (operationContext.getParent() != serviceContext) { throw new AxisError("ServiceContext in OperationContext does not match !"); } } this.setAxisOperation(operationContext.getAxisOperation()); } }
/** * @param context The OperationContext */ public void setOperationContext(OperationContext context) { // allow setting the fields to null // useful when extracting the messge context from the object graph operationContext = context; this.setParent(operationContext); if (operationContext != null) { if (serviceContext == null) { setServiceContext(operationContext.getServiceContext()); } else { if (operationContext.getParent() != serviceContext) { throw new AxisError("ServiceContext in OperationContext does not match !"); } } this.setAxisOperation(operationContext.getAxisOperation()); } }
/** * @param context */ public void setServiceContext(ServiceContext context) { // allow the service context to be set to null // this allows the message context object to be extraced from // the object graph serviceContext = context; if (serviceContext != null) { if ((operationContext != null) && (operationContext.getParent() != context)) { throw new AxisError("ServiceContext and OperationContext.parent do not match!"); } // setting configcontext using configuration context in service context if (configurationContext == null) { // setting configcontext configurationContext = context.getConfigurationContext(); } if (serviceGroupContext == null) { // setting service group context serviceGroupContext = context.getServiceGroupContext(); } AxisService axisService = context.getAxisService(); this.setAxisService(axisService); // Inform the listeners of an attach event if (axisService != null) { axisService.attachServiceContextEvent(serviceContext, this); } } }
/** * @param context */ public void setServiceContext(ServiceContext context) { // allow the service context to be set to null // this allows the message context object to be extraced from // the object graph serviceContext = context; if (serviceContext != null) { if ((operationContext != null) && (operationContext.getParent() != context)) { throw new AxisError("ServiceContext and OperationContext.parent do not match!"); } // setting configcontext using configuration context in service context if (configurationContext == null) { // setting configcontext configurationContext = context.getConfigurationContext(); } if (serviceGroupContext == null) { // setting service group context serviceGroupContext = context.getServiceGroupContext(); } AxisService axisService = context.getAxisService(); this.setAxisService(axisService); // Inform the listeners of an attach event if (axisService != null) { axisService.attachServiceContextEvent(serviceContext, this); } } }
existingSC = (ServiceContext) existingOC.getParent();
existingSC = (ServiceContext) existingOC.getParent();
serviceContext = (ServiceContext) operationContext.getParent(); ServiceGroupContext serviceGroupContext = (ServiceGroupContext) serviceContext.getParent();
serviceContext = (ServiceContext) operationContext.getParent(); ServiceGroupContext serviceGroupContext = (ServiceGroupContext) serviceContext.getParent();