@Loggable(value=1) public final class MkGrizzlyContainer extends Object implements MkContainer
MkContainer based on Grizzly Server.MkContainer,
Examples| Constructor and Description |
|---|
MkGrizzlyContainer() |
| Modifier and Type | Method and Description |
|---|---|
URI |
home()
Get its home.
|
MkContainer |
next(MkAnswer answer)
Give this answer on the next request.
|
int |
queries()
How many queries we have left.
|
MkContainer |
start()
Start it on the first available TCP port.
|
MkContainer |
start(int prt)
Start it on a provided port.
|
void |
stop()
Stop container.
|
MkQuery |
take()
Get the oldest request received
(
NoSuchElementException
if no more elements in the list). |
public MkContainer next(MkAnswer answer)
MkContainernext in interface MkContaineranswer - Next answer to givepublic MkQuery take()
MkContainerNoSuchElementException
if no more elements in the list).take in interface MkContainerpublic int queries()
MkContainerqueries in interface MkContainerMkContainer.take()public MkContainer start() throws IOException
MkContainerstart in interface MkContainerIOException - If failspublic MkContainer start(int prt) throws IOException
MkContainerstart in interface MkContainerprt - The port where it should start listeningIOException - If failspublic void stop()
MkContainerstop in interface MkContainerpublic URI home()
MkContainerhome in interface MkContainerCopyright © 2012–2014 jcabi.com. All rights reserved.