Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts2
Class ServletCache

    java.lang.Object
      org.apache.struts2.ServletCache

    public class ServletCache

extends Object

Caches servlet instances by jsp location. If a requested jsp is not in the cache, "get" will block and wait for the jsp to be loaded

Field Summary
`protected ConcurrentMap<String,Future<javax.servlet.Servlet>>` | `cache`

Constructor Summary
`ServletCache()`

Method Summary
`void` | `clear()`
`javax.servlet.Servlet` | `get(String location)`
`static RuntimeException` | `launderThrowable(Throwable t)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### cache

    protected final ConcurrentMap<String,Future<javax.servlet.Servlet>> cache

Constructor Detail

### ServletCache

    public ServletCache()

Method Detail

### clear

    public void clear()

### get

    public javax.servlet.Servlet get(String location)
                              throws InterruptedException

  Throws:
    `InterruptedException`

### launderThrowable

    public static RuntimeException launderThrowable(Throwable t)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.