public void setAddress(String s) { super.setAddress(s); if (saddress != null) { saddress.setLocation(s); } }
public EndpointInfo createEndpointInfo( ServiceInfo serviceInfo, BindingInfo b, List<?> ees ) { if (ees != null) { for (Iterator<?> itr = ees.iterator(); itr.hasNext();) { Object extensor = itr.next(); if (extensor instanceof AddressType) { final AddressType httpAdd = (AddressType)extensor; EndpointInfo info = new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/"); info.setAddress(httpAdd.getLocation()); info.addExtensor(httpAdd); return info; } } } HttpEndpointInfo hei = new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/"); AddressType at = new AddressType(); hei.addExtensor(at); return hei; }
/** * Create an instance of {@link UrlEncoded } * */ public UrlEncoded createUrlEncoded() { return new UrlEncoded(); }
/** * Create an instance of {@link AddressType } * */ public AddressType createAddressType() { return new AddressType(); }
/** * Create an instance of {@link BindingType } * */ public BindingType createBindingType() { return new BindingType(); }
address = ((SoapAddress)e).getLocationURI(); } else if (e instanceof AddressType) { address = ((AddressType)e).getLocation(); } else if (e instanceof SOAP12Address) { address = ((SOAP12Address)e).getLocationURI();
/** * Create an instance of {@link OperationType } * */ public OperationType createOperationType() { return new OperationType(); }
/** * Create an instance of {@link UrlReplacement } * */ public UrlReplacement createUrlReplacement() { return new UrlReplacement(); }
public static void setAddress(AbstractDestination dest, String absAddress) { dest.getEndpointInfo().setAddress(absAddress); if (dest.getEndpointInfo().getExtensor(AddressType.class) != null) { dest.getEndpointInfo().getExtensor(AddressType.class).setLocation(absAddress); } } }
/** * Create an instance of {@link AddressType } * */ public AddressType createAddressType() { return new AddressType(); }
/** * Create an instance of {@link BindingType } * */ public BindingType createBindingType() { return new BindingType(); }
/** * Create an instance of {@link UrlEncoded } * */ public UrlEncoded createUrlEncoded() { return new UrlEncoded(); }
/** * Create an instance of {@link OperationType } * */ public OperationType createOperationType() { return new OperationType(); }
/** * Create an instance of {@link UrlReplacement } * */ public UrlReplacement createUrlReplacement() { return new UrlReplacement(); }
@Override public void handle(HttpExchange exchange) throws IOException { try { //Update address in EndpointInfo; this can only happen here, //as the contextPath is provided in the HttpExchange only EndpointInfo ei = destination.getEndpointInfo(); if (ei != null) { String ad = ei.getAddress(); String path = exchange.getHttpContext().getPath(); if (ad != null && ad.equals(path)) { synchronized (ei) { String contextPath = exchange.getContextPath(); ei.setAddress(contextPath + path); if (ei.getExtensor(AddressType.class) != null) { ei.getExtensor(AddressType.class).setLocation(contextPath + path); } else if (ei.getExtensor(SoapAddress.class) != null) { ei.getExtensor(SoapAddress.class).setLocationURI(contextPath + path); } } } } //service request destination.doService(new HttpServletRequestAdapter(exchange), new HttpServletResponseAdapter(exchange)); } finally { exchange.close(); } }
/** * Create an instance of {@link AddressType } * */ public AddressType createAddressType() { return new AddressType(); }
/** * Create an instance of {@link BindingType } * */ public BindingType createBindingType() { return new BindingType(); }
/** * Create an instance of {@link UrlEncoded } * */ public UrlEncoded createUrlEncoded() { return new UrlEncoded(); }
/** * Create an instance of {@link OperationType } * */ public OperationType createOperationType() { return new OperationType(); }
/** * Create an instance of {@link BindingType } * */ public BindingType createBindingType() { return new BindingType(); }