public class JPIPRequestEncoder extends java.lang.Object implements StatusCodes, ImageReturnTypes
Usage example:
construct
set functions
createRequest
getRequest
Modifier and Type | Field and Description |
---|---|
private JPIPRequestFields |
jpipRequestFields
This attribute contains the JPIP request that will be used to build the
JPIP string.
|
private java.lang.String |
request
It contains the JPIP string (as a url).
|
ACCEPTED, BAD_REQUEST, NOT_FOUND, NOT_IMPLEMENTED, OK, SERVICE_UNAVAILABLE, UNSUPPORTED_MEDIA_TYPE
JPP_STREAM, JPT_STREAM, MAX_IMAGE_RETURN_TYPES_ALLOWED, RAW
Constructor and Description |
---|
JPIPRequestEncoder()
Constructor.
|
JPIPRequestEncoder(JPIPRequestFields jpipRequestFields) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createRequest()
Encoders the JPIP parameters as a URL string
|
static java.lang.String |
encodeJPIPRequest(JPIPRequestFields jpipRequestFields)
Encodes the JPIP Request Fields into a url.
|
void |
list(java.io.PrintStream out)
Prints this JPIP Request Encoder fields out to the specified output
stream.
|
void |
reset()
Resests the request line.
|
java.lang.String |
toString()
For debugging purposes.
|
private JPIPRequestFields jpipRequestFields
private java.lang.String request
public JPIPRequestEncoder()
public JPIPRequestEncoder(JPIPRequestFields jpipRequestFields)
public static java.lang.String encodeJPIPRequest(JPIPRequestFields jpipRequestFields)
jpipRequestFields
- public java.lang.String createRequest()
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)