public class CupsServer
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
CupsServer()
Instantiates a CUPS server with the IPP standard port (631).
|
CupsServer(int port)
Instantiates a CUPS server with the given IPP port.
|
CupsServer(int port,
java.net.URI forwardURI)
Instantiates a CUPS server with the given IPP port.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
Gives the port where the server is running.
|
boolean |
isStarted()
Looks, if the server is running.
|
static void |
main(java.lang.String... args)
This is the CLI interface to start the CupsServer.
|
void |
run()
This is the method to run the server directly.
|
void |
shutdown()
This is the command to shut down the server.
|
java.lang.Thread |
start()
This is the method to start the server in the background.
|
java.lang.String |
toString()
For a useful toString implementation we put the port into it.
|
public CupsServer()
public CupsServer(int port)
port - e.g. 631public CupsServer(int port,
java.net.URI forwardURI)
port - e.g. 631forwardURI - CUPS server where the requests are forwarded topublic static void main(java.lang.String... args)
args - "start", "631"public int getPort()
public java.lang.Thread start()
public void shutdown()
public void run()
run in interface java.lang.Runnablepublic boolean isStarted()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018–2020. All rights reserved.