|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerProvider
Method Summary | |
---|---|
void |
addAuthentication(String pathSpec,
String authName)
Add authentication handler to the given pathspec. |
void |
addBehaviour(String pathspec,
Behaviour... behaviour)
Add the given chain of Behaviour to execute for the given pathspec. |
void |
addUser(String user,
Object password)
Add the given user and password to the servers security realm. |
int |
getPort()
|
URL |
getUrl()
|
void |
initServer()
Configure the underlying server instance. |
void |
setPort(int port)
Set to -1 to auto-choose a free port. |
void |
setSSL(String keystore,
String password)
|
void |
start()
|
void |
stop()
|
Method Detail |
---|
URL getUrl() throws MalformedURLException
MalformedURLException
void stop() throws Exception
Exception
void addBehaviour(String pathspec, Behaviour... behaviour)
pathspec
- e.g. "/path/*"void start() throws Exception
Exception
void initServer() throws Exception
Exception
void setPort(int port)
port
- int getPort()
void setSSL(String keystore, String password)
keystore
- The keystore to use. (generated with e.g. 'keytool -keystore keystore -alias jetty -genkey
-keyalg DSA')password
- void addAuthentication(String pathSpec, String authName)
pathSpec
- e.g. "/path/*"authName
- e.g. BASIC, DIGESTvoid addUser(String user, Object password)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |