@version $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/ppr/ScriptBufferingResponseWriter.java#0 $) $Date: 10-nov-2005.19:03:31 $ @author The Oracle ADF Faces Team
408409410411412413414415416417418419420421
* * @return Contentinfo with contentType Data. */ private ContentInfo makeData(SafeContents safe) throws IOException, ASN1Exception { Data data = null; ByteArrayOutputStream baos = new ByteArrayOutputStream(); DEREncoder encoder = new DEREncoder(baos); safe.encode(encoder); data = new Data(baos.toByteArray()); baos.close(); ContentInfo cInfo = new ContentInfo(data); return cInfo; }
636465666768697071
// check version before any other operations Request request = new Request (display, major_opcode, 0, 3); request.write4 (CLIENT_MAJOR_VERSION); request.write4 (CLIENT_MINOR_VERSION); Data reply = display.read_reply (request); server_major_version = reply.read4 (8); server_minor_version = reply.read4 (12); }
123124125126127128129130131132133134
*/ public long getOverlayWindow (Window win) { Request request = new Request (display, major_opcode, 7, 2); request.write4 (win.id); Data reply = display.read_reply (request); if (reply == null) { return -1; } return reply.read4(8); }
113114115116117118119120121
// check version before any other operations Request request = new Request (display, major_opcode, 0, 3); request.write4 (CLIENT_MAJOR_VERSION); request.write4 (CLIENT_MINOR_VERSION); Data reply = display.read_reply (request); server_major_version = reply.read2 (8); server_minor_version = reply.read2 (10); }
8990919293949596979899100
PartialPageContext pprContext = arc.getPartialPageContext(); XhtmlRenderer.enableScriptDeferring(arc, true); ResponseWriter saved = context.getResponseWriter(); ScriptBufferingResponseWriter scriptBufferingWriter = new ScriptBufferingResponseWriter(context, saved); boolean useXMLDom = supportsXMLDOM(arc); ResponseWriter pprOut = new PPRResponseWriter(scriptBufferingWriter, pprContext, useXMLDom);
888990919293949596979899
202203204205206207208209210211212213214215216
Configuration configuration = project.getConfiguration(); if (configuration != null) { Data data = configuration.getData(); if (data != null) { ModuleDependencies moduleDependencies = data.getModuleDependencies(); if (moduleDependencies != null) { dependencies = moduleDependencies.getDependency(); }