/** * Invoke the object with the request from the input stream. * * @param in the Burlap input stream * @param out the Burlap output stream */ public void invoke(BurlapInput in, BurlapOutput out) throws Exception { invoke(_service, in, out); }
Method method = getMethod(methodName); value = getAPIClassName(); else if ("java.home.class".equals(attrName)) value = getHomeClassName(); else if ("java.object.class".equals(attrName)) value = getObjectClassName();
/** * Initialize this service exporter. */ public void prepare() { checkService(); checkServiceInterface(); this.skeleton = new BurlapSkeleton(getService(), getServiceInterface()); }
Method method = getMethod(methodName); value = getAPIClassName(); else if ("java.home.class".equals(attrName)) value = getHomeClassName(); else if ("java.object.class".equals(attrName)) value = getObjectClassName();
_skeleton = new BurlapSkeleton(_service, _apiClass); } catch (ServletException e) { throw e;
Method method = getMethod(methodName); value = getAPIClassName(); else if ("java.home.class".equals(attrName)) value = getHomeClassName(); else if ("java.object.class".equals(attrName)) value = getObjectClassName();
/** * Invoke the object with the request from the input stream. * * @param in the Burlap input stream * @param out the Burlap output stream */ public void invoke(BurlapInput in, BurlapOutput out) throws Exception { invoke(_service, in, out); }
_skeleton = new BurlapSkeleton(_service, _apiClass); } catch (ServletException e) { throw e;
/** * Invoke the object with the request from the input stream. * * @param in the Burlap input stream * @param out the Burlap output stream */ public void invoke(BurlapInput in, BurlapOutput out) throws Exception { invoke(_service, in, out); }
_skeleton = new BurlapSkeleton(_service, _apiClass); } catch (ServletException e) { throw e;
BurlapOutput out = new BurlapOutput(os); _skeleton.invoke(in, out); } catch (RuntimeException e) { throw e;
/** * Initialize this service exporter. */ public void prepare() { checkService(); checkServiceInterface(); this.skeleton = new BurlapSkeleton(getProxyForService(), getServiceInterface()); }
BurlapOutput out = new BurlapOutput(os); _skeleton.invoke(in, out); } catch (RuntimeException e) { throw e;
BurlapOutput out = new BurlapOutput(os); _skeleton.invoke(in, out); } catch (RuntimeException e) { throw e;
/** * Perform an invocation on the exported object. * @param inputStream the request stream * @param outputStream the response stream * @throws Throwable if invocation failed */ public void invoke(InputStream inputStream, OutputStream outputStream) throws Throwable { Assert.notNull(this.skeleton, "Burlap exporter has not been initialized"); try { this.skeleton.invoke(new BurlapInput(inputStream), new BurlapOutput(outputStream)); } finally { try { inputStream.close(); } catch (IOException ex) { // ignore } try { outputStream.close(); } catch (IOException ex) { // ignore } } } }
/** * Perform an invocation on the exported object. * @param inputStream the request stream * @param outputStream the response stream * @throws Throwable if invocation failed */ public void invoke(InputStream inputStream, OutputStream outputStream) throws Throwable { Assert.notNull(this.skeleton, "Burlap exporter has not been initialized"); ClassLoader originalClassLoader = overrideThreadContextClassLoader(); try { this.skeleton.invoke(new BurlapInput(inputStream), new BurlapOutput(outputStream)); } finally { try { inputStream.close(); } catch (IOException ex) { // ignore } try { outputStream.close(); } catch (IOException ex) { // ignore } resetThreadContextClassLoader(originalClassLoader); } }