1 16 package org.apache.cocoon.webapps.session; 17 18 import org.apache.cocoon.ProcessingException; 19 import org.apache.cocoon.environment.Session; 20 import org.apache.cocoon.xml.XMLConsumer; 21 import org.w3c.dom.DocumentFragment ; 22 import org.xml.sax.SAXException ; 23 24 33 public interface SessionManager { 34 35 36 String ROLE = SessionManager.class.getName();; 37 38 43 Session createSession(); 44 45 50 Session getSession(boolean createFlag); 51 52 60 void terminateSession(boolean force) 61 throws ProcessingException; 62 63 64 73 DocumentFragment getContextFragment(String contextName, 74 String path) 75 throws ProcessingException; 76 77 88 boolean streamContextFragment(String contextName, 89 String path, 90 XMLConsumer consumer) 91 throws SAXException , ProcessingException; 92 93 103 void setContextFragment(String contextName, 104 String path, 105 DocumentFragment fragment) 106 throws ProcessingException; 107 108 118 void appendContextFragment(String contextName, 119 String path, 120 DocumentFragment fragment) 121 throws ProcessingException; 122 123 133 void mergeContextFragment(String contextName, 134 String path, 135 DocumentFragment fragment) 136 throws ProcessingException; 137 138 146 void removeContextFragment(String contextName, 147 String path) 148 throws ProcessingException; 149 150 } 151 | Popular Tags |