本文整理汇总了Java中org.apache.catalina.Store类的典型用法代码示例。如果您正苦于以下问题:Java Store类的具体用法?Java Store怎么用?Java Store使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Store类属于org.apache.catalina包,在下文中一共展示了Store类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: storeManager
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* Store the specified Manager properties.
*
* @param writer PrintWriter to which we are storing
* @param indent Number of spaces to indent this element
* @param manager Object whose properties are being stored
*
* @exception Exception if an exception occurs while storing
*/
private void storeManager(PrintWriter writer, int indent,
Manager manager) throws Exception {
if (isDefaultManager(manager)) {
return;
}
// Store the beginning of this element
for (int i = 0; i < indent; i++) {
writer.print(' ');
}
writer.print("<Manager");
storeAttributes(writer, manager);
writer.println(">");
// Store nested <Store> element
if (manager instanceof PersistentManager) {
Store store = ((PersistentManager) manager).getStore();
if (store != null) {
storeStore(writer, indent + 2, store);
}
}
// Store the ending of this element
for (int i = 0; i < indent; i++) {
writer.print(' ');
}
writer.println("</Manager>");
}
示例2: storeStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* Store the specified Store properties.
*
* @param writer PrintWriter to which we are storing
* @param indent Number of spaces to indent this element
* @param store Object whose properties are being stored
*
* @exception Exception if an exception occurs while storing
*/
private void storeStore(PrintWriter writer, int indent,
Store store) throws Exception {
for (int i = 0; i < indent; i++) {
writer.print(' ');
}
writer.print("<Store");
storeAttributes(writer, store);
writer.println("/>");
}
示例3: getStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* Returns the store used when flushing the session
*
* @return the store used when flushing the session
*/
public Store getStore() {
return this.lockTemplate.withReadLock(new LockTemplate.LockedOperation<Store>() {
@Override
public Store invoke() {
return SessionFlushValve.this.store;
}
});
}
示例4: setStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* Sets the store to use when flushing the session
*
* @param store the store to use when flushing the session
*/
public void setStore(final Store store) {
this.lockTemplate.withWriteLock(new LockTemplate.LockedOperation<Void>() {
@Override
public Void invoke() {
SessionFlushValve.this.store = store;
return null;
}
});
}
示例5: getStore
import org.apache.catalina.Store; //导入依赖的package包/类
public Store getStore() {
return this.store;
}
示例6: setStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* Set the Store object which will manage persistent Session
* storage for this Manager.
*
* @param store the associated Store
*/
public void setStore(Store store) {
this.store = store;
store.setManager(this);
}
示例7: setStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* Set the Store object which will manage persistent Session
* storage for this Manager.
*
* @param store the associated Store
*/
public void setStore(Store store) {
this.store = store;
store.setManager(this);
}
示例8: getStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* @return the Store object which manages persistent Session
* storage for this Manager.
*/
public Store getStore() {
return this.store;
}
示例9: setStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* Set the Store object which will manage persistent Session
* storage for this Manager.
*
* @param store the associated Store
*/
public void setStore(Store store) {
this.store = store;
store.setManager(this);
}
示例10: getStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* Return the Store object which manages persistent Session
* storage for this Manager.
*/
public Store getStore() {
return (this.store);
}
示例11: setStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* Set the Store object which will manage persistent Session storage for
* this Manager.
*
* @param store
* the associated Store
*/
public void setStore(Store store) {
this.store = store;
store.setManager(this);
}
示例12: getStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* @return the Store object which manages persistent Session storage for
* this Manager.
*/
public Store getStore() {
return this.store;
}
示例13: setStore
import org.apache.catalina.Store; //导入依赖的package包/类
/**
* The store will be injected by Tomcat on startup.
*
* <p>See distributed-sessions.xml for the configuration.</p>
*/
public void setStore(Store store) {
this.store = store;
store.setManager(this);
}