|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.dispatch.InvocationServer
public class InvocationServer
The dispatch server is responsible for building Invocations, specifically for creating the FilterChain for the invocation.
| Constructor Summary | |
|---|---|
InvocationServer(InvocationBuilder builder)
|
|
| Method Summary | |
|---|---|
void |
addServerListener(ServerListener listener)
Adds a listener. |
Invocation |
buildInvocation(Invocation invocation)
Builds the invocation. |
Invocation |
buildInvocation(java.lang.Object protocolKey,
Invocation invocation)
Builds the invocation, saving its value keyed by the protocol key. |
void |
clearCache()
Clears the invocation cache. |
Invocation |
createInvocation()
Creates an invocation. |
InvocationDecoder |
createInvocationDecoder()
Returns the invocation decoder for configuration. |
void |
destroy()
Closes the server. |
Invocation |
getInvocation(java.lang.Object protocolKey)
Returns the cached invocation. |
InvocationBuilder |
getInvocationBuilder()
Gets the dispatch builder. |
long |
getInvocationCacheHitCount()
Returns the invocation cache hit count. |
long |
getInvocationCacheMissCount()
Returns the invocation cache hit count. |
InvocationDecoder |
getInvocationDecoder()
Returns the InvocationDecoder. |
java.util.ArrayList<Invocation> |
getInvocations()
Returns the invocations. |
int |
getMaxURILength()
|
java.lang.String |
getServerId()
Gets the server's id. |
java.lang.String |
getURLCharacterEncoding()
Sets URL encoding. |
void |
init()
Initializes the server. |
void |
invalidateMatchingInvocations(InvocationMatcher matcher)
Clears matching entries. |
boolean |
isDestroyed()
Returns true if the server is destroyed. |
boolean |
isModified()
Returns true if the server has been modified and needs restarting. |
boolean |
logModified(java.util.logging.Logger log)
Log the reason for modification. |
void |
setInvocationCacheMaxURLLength(int length)
Sets the max url length. |
void |
setInvocationCacheSize(int size)
Sets the invocation cache size. |
void |
setMaxURILength(int maxURILength)
Sets max uri length |
void |
setServerId(java.lang.String serverId)
Gets the server's id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvocationServer(InvocationBuilder builder)
| Method Detail |
|---|
public java.lang.String getServerId()
public void setServerId(java.lang.String serverId)
public InvocationBuilder getInvocationBuilder()
public void setInvocationCacheSize(int size)
public void setInvocationCacheMaxURLLength(int length)
public int getMaxURILength()
public void setMaxURILength(int maxURILength)
@PostConstruct public void init()
public InvocationDecoder getInvocationDecoder()
public java.lang.String getURLCharacterEncoding()
public InvocationDecoder createInvocationDecoder()
public final Invocation getInvocation(java.lang.Object protocolKey)
public Invocation createInvocation()
public Invocation buildInvocation(java.lang.Object protocolKey,
Invocation invocation)
throws ConfigException
protocolKey - protocol-specific key to save the invocation ininvocation - the invocation to build.
ConfigException
public Invocation buildInvocation(Invocation invocation)
throws ConfigException
ConfigExceptionpublic void clearCache()
public void invalidateMatchingInvocations(InvocationMatcher matcher)
public java.util.ArrayList<Invocation> getInvocations()
public long getInvocationCacheHitCount()
public long getInvocationCacheMissCount()
public boolean isModified()
isModified in interface Dependencypublic boolean logModified(java.util.logging.Logger log)
logModified in interface Dependencypublic void addServerListener(ServerListener listener)
public boolean isDestroyed()
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||