/** * convenience constructor. Creates an Operation with the specified name and sets one DCP with the * specified httpGetHref and httpPostHref. The constraints and parameters attributes will stay * <code>null</code>. * * @param name name of the operation * @param httpGetHref the URL to be used for HTTP GET * @param httpPostHref the URL to be used for HTTP POST */ public Operation(final String name, final String httpGetHref, final String httpPostHref) { setName(name); final DCP[] dcp = new DCP[1]; dcp[0] = new DCP(new GetRequestMethod(new OnlineResource(httpGetHref)), new PostRequestMethod(new OnlineResource(httpPostHref))); setDcps(dcp); }
net.opengis.ows.x11.RequestMethodType xb_postRequestMethod = xb_postRequestMethods[k]; OnlineResource oc_onlineRessource = new OnlineResource(xb_postRequestMethod.getHref()); RequestMethod oc_requestMethod = new PostRequestMethod(oc_onlineRessource); oc_requestMethods.add(oc_requestMethod);
for (final RequestMethodType xbPostRequestMethod : xbPostRequestMethods) { final OnlineResource ocOnlineRessource = new OnlineResource(xbPostRequestMethod.getHref()); final RequestMethod ocRequestMethod = new PostRequestMethod(ocOnlineRessource); ocRequestMethods.add(ocRequestMethod);
for (final RequestMethodType xbPostRequestMethod : xbPostRequestMethods) { final OnlineResource ocOnlineRessource = new OnlineResource(xbPostRequestMethod.getHref()); final RequestMethod ocRequestMethod = new PostRequestMethod(ocOnlineRessource); addConstraints(xbPostRequestMethod, ocRequestMethod); ocRequestMethods.add(ocRequestMethod);