/** * Accepts the given visitor. Iterates over all the contained service. * * @param visitor the visitor. */ public void accept(Visitor visitor) { visitor.startEndpoint(this); service.accept(visitor); visitor.endEndpoint(this); }
/** * Creates a client for a particular {@link Endpoint} on a specified {@link Transport}. The * client will create an anonymous Channel to talk to the service. The URI from the endpoint * will be used as the destination for messages. * @param t The Transport to use. * @param endpoint The Endpoint to invoke. */ public Client(Transport t, Endpoint endpoint) { this(endpoint.getBinding(), t, endpoint.getBinding().getService(), endpoint.getUrl(), null); }
public Endpoint addEndpoint(QName name, Binding binding, String address) { Endpoint endpoint = new Endpoint(name, binding, address); addEndpoint(endpoint); return endpoint; }
public JAXBDispatch(Client client) { this.client = client; opInfo = client.getService().getServiceInfo().getOperation("invoke"); }
public AddressingOperationInfo(OperationInfo op) { this(op.getService().getService().getTargetNamespace() + "#" + op.getName(), op); }
public void createOutputParts(Message req, OperationInfo op) { writeParameters(req, op.getOutputMessage().getMessageParts()); createDocumentation(op.getOutputMessage().getMessageParts()); }
/** * Get the URL for a particular service. */ public String getServiceURL( Service service ) { return "http://localhost/services/" + service.getSimpleName(); }
/** * Get the WSDL for a service. * * @param service * The name of the service. */ protected WSDLWriter getWSDL(String service) throws Exception { ServiceRegistry reg = getServiceRegistry(); Service hello = reg.getService(service); return hello.getWSDLWriter(); }
private void setService(Service service) { this.service = service; this.service.setFaultSerializer(service.getFaultSerializer()); }
/** * Acceps the given visitor. * * @param visitor the visitor. */ public void accept(Visitor visitor) { visitor.startMessagePart(this); visitor.endMessagePart(this); }
public MessagePartContainer getHeaders(MessageInfo msg) { MessagePartContainer c = (MessagePartContainer) msg2parts.get(msg); if (c == null) { c = new HeaderPartContainer(msg.getOperation()); msg2parts.put(msg, c); } return c; }
/** * Create a client which uses a particular {@link Binding} with a specified URL * and a specified {@link Transport}. * @param transport The Transport to use. * @param binding * @param url */ public Client(Transport t, Binding binding, String url) { this(binding, t, binding.getService(), url, null); }
/** * Creates a new message. This message can be set as either {@link #setInputMessage(MessageInfo) input message} or * {@link #setOutputMessage(MessageInfo) output message}. * * @param name the name of the message. * @return the created message. */ public MessageInfo createMessage(QName name) { MessageInfo message = new MessageInfo(name, this); return message; }
public AddressingOperationInfo(String inAction, String outAction, String to, OperationInfo op) { this.inAction = inAction; this.outAction = outAction; this.to=to; op.setProperty(ADDRESSING_OPERATION_KEY, this); this.operationInfo = op; }
public static AddressingOperationInfo getAddressingOperationInfo(OperationInfo op) { return (AddressingOperationInfo) op.getProperty(ADDRESSING_OPERATION_KEY); }
/** * Initializes a new, default instance of the <code>Service</code> for a specified * <code>ServiceInfo</code>. * * @param service the service. */ public Service(ServiceInfo service) { this.service = service; service.setService(this); }
public SourceDispatch(Client client) { this.client = client; opInfo = client.getService().getServiceInfo().getOperation("invoke"); }
/** * Get the key for caching a service. * @param service the service. * @return the key. */ protected Object getServiceKey(Service service){ return "service." + service.getSimpleName(); } public Factory applyScope(Factory f, MessageContext ctxt) {
public String getServiceURL(Service service) { return "jms://" + service.getSimpleName(); }