Java 类org.apache.catalina.Store 实例源码

项目:jerrydog    文件:StandardServer.java   
/**
 * 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>");

}
项目:jerrydog    文件:StandardServer.java   
/**
 * 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("/>");

}
项目:session-managers    文件:SessionFlushValve.java   
/**
 * 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;
        }

    });
}
项目:session-managers    文件:SessionFlushValve.java   
/**
 * 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;
        }

    });
}
项目:HowTomcatWorks    文件:StandardServer.java   
/**
 * 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>");

}
项目:HowTomcatWorks    文件:StandardServer.java   
/**
 * 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("/>");

}
项目:tomcat-runtime    文件:DatastoreManager.java   
public Store getStore() {
  return this.store;
}
项目:jerrydog    文件:PersistentManagerBase.java   
/**
 * 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);

}
项目:HowTomcatWorks    文件:PersistentManagerBase.java   
/**
 * 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);

}
项目:tomcat7    文件:PersistentManagerBase.java   
/**
 * 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);
}
项目:tomcat7    文件:PersistentManagerBase.java   
/**
 * @return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {
    return this.store;
}
项目:lams    文件:PersistentManagerBase.java   
/**
 * 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);

}
项目:lams    文件:PersistentManagerBase.java   
/**
 * Return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {

    return (this.store);

}
项目:jerrydog    文件:PersistentManagerBase.java   
/**
 * Return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {

    return (this.store);

}
项目:apache-tomcat-7.0.73-with-comment    文件:PersistentManagerBase.java   
/**
 * 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);
}
项目:apache-tomcat-7.0.73-with-comment    文件:PersistentManagerBase.java   
/**
 * @return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {
    return this.store;
}
项目:lazycat    文件:PersistentManagerBase.java   
/**
 * 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);
}
项目:lazycat    文件:PersistentManagerBase.java   
/**
 * @return the Store object which manages persistent Session storage for
 *         this Manager.
 */
public Store getStore() {
    return this.store;
}
项目:tomcat-runtime    文件:DatastoreManager.java   
/**
 * 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);
}
项目:class-guard    文件:PersistentManagerBase.java   
/**
 * 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);

}
项目:class-guard    文件:PersistentManagerBase.java   
/**
 * Return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {

    return (this.store);

}
项目:apache-tomcat-7.0.57    文件:PersistentManagerBase.java   
/**
 * 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);

}
项目:apache-tomcat-7.0.57    文件:PersistentManagerBase.java   
/**
 * Return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {

    return (this.store);

}
项目:apache-tomcat-7.0.57    文件:PersistentManagerBase.java   
/**
 * 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);

}
项目:apache-tomcat-7.0.57    文件:PersistentManagerBase.java   
/**
 * Return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {

    return (this.store);

}
项目:HowTomcatWorks    文件:PersistentManagerBase.java   
/**
 * Return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {

    return (this.store);

}
项目:WBSAirback    文件:PersistentManagerBase.java   
/**
 * 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);

}
项目:WBSAirback    文件:PersistentManagerBase.java   
/**
 * Return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {

    return (this.store);

}