|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrestart.server.RestServerPolicy
public abstract class RestServerPolicy
Policies about the RestServer
| Field Summary | |
|---|---|
static long |
DEFAULT_MAX_CONTENTLENGTH
|
static int |
DEFAULT_MAX_HEADERLINE_LENGTH
|
static int |
DEFAULT_MAX_RUNNING_THREADS
|
static int |
DEFAULT_SO_TIMEOUT
|
| Constructor Summary | |
|---|---|
RestServerPolicy()
|
|
| Method Summary | |
|---|---|
boolean |
acceptConnectionFrom(java.net.InetAddress inetAddress)
Accept this connection ? |
static RestServerPolicy |
getDefaultInstance()
Get a default instance |
long |
getMaxContentLength(java.lang.String contentType)
Maximum length of content, by type. |
int |
getMaxHeaderLineLength()
Header line max length |
int |
getMaxRunningThreads()
Maximum number of running socket threads (ie active connections). |
int |
getSoTimeout()
SO_TIMEOUT |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_RUNNING_THREADS
public static final int DEFAULT_SO_TIMEOUT
public static final long DEFAULT_MAX_CONTENTLENGTH
public static final int DEFAULT_MAX_HEADERLINE_LENGTH
| Constructor Detail |
|---|
public RestServerPolicy()
| Method Detail |
|---|
public static RestServerPolicy getDefaultInstance()
public int getMaxRunningThreads()
public int getSoTimeout()
public int getMaxHeaderLineLength()
public long getMaxContentLength(java.lang.String contentType)
contentType - the mime contentType
public boolean acceptConnectionFrom(java.net.InetAddress inetAddress)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||