public class IppServerRequestHandler extends AbstractIppRequestHandler
| Constructor and Description |
|---|
IppServerRequestHandler()
The default ctor is mainly intented for testing.
|
IppServerRequestHandler(IppHandler ippHandler,
HttpHandler httpHandler)
If the request handler acts as a proxy we need to know the URI where
the request should be forwarded.
|
IppServerRequestHandler(java.net.URI forwardURI)
If the request handler acts as a proxy qe need to know the URI where
the request should be forwarded.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
handle(org.apache.http.HttpEntityEnclosingRequest request,
org.apache.http.HttpResponse response)
Handles the incomming IPP request and sends it to the real CUPS server
(given by the forwardURI or the inserted printer-uri).
|
void |
handle(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
Handles the incomming HTTP request.
|
handleExceptionpublic IppServerRequestHandler()
public IppServerRequestHandler(java.net.URI forwardURI)
forwardURI - CUPS URI where the request should be forwarded topublic IppServerRequestHandler(IppHandler ippHandler, HttpHandler httpHandler)
ippHandler - the handler used for IPP communicationhttpHandler - the http handlerpublic void handle(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.HttpException,
java.io.IOException
handle in interface org.apache.http.protocol.HttpRequestHandlerhandle in class AbstractIppRequestHandlerrequest - incoming requestresponse - outgoing responsecontext - contextorg.apache.http.HttpException - in case of HTTP problemsjava.io.IOException - e.g. network problemsprotected void handle(org.apache.http.HttpEntityEnclosingRequest request,
org.apache.http.HttpResponse response)
handle in class AbstractIppRequestHandlerrequest - incoming requestresponse - outgoing responseCopyright © 2018–2020. All rights reserved.