public class JPIPResponseFields
extends java.lang.Object
Further information, see ISO/IEC 15444-9 section C.10
Modifier and Type | Field and Description |
---|---|
int |
auxport |
java.lang.String |
cap
JPIP-cap = "JPIP-cap" ":" LWSP 1#capability-code
This response header specifies that the client shall support a particular feature in order to interpret the logical target in a
conformant manner.
|
java.lang.String |
cid
JPIP-cnew = "JPIP-cnew" ":" LWSP "cid" "=" channel-id
["," 1#(transport-param "=" TOKEN)]
transport-param = TOKEN
The server shall send this response header if, and only if, it assigns a new channel in response to a New Channel request
field.
|
int[][] |
comps
JPIP-comps = "JPIP-comps" ":" LWSP 1#UINT-RANGE
The server should send this response header if the components for which it will serve data differ from those requested
via the Components request field.
|
java.lang.String |
context |
int[] |
fsiz
JPIP-fsiz = "JPIP-fsiz" ":" LWSP fx "," fy
The server should send this response header if the frame size for which response data will be served differs from that
requested via the Frame Size request field.
|
java.lang.String |
host |
int |
layers
JPIP-layers = "JPIP-layers" ":" LWSP UINT
The server should send this response header if the number of layers for which it will serve is smaller than the value
specified by the layers request field.
|
int |
len
JPIP-len = "JPIP-len" ":" LWSP UINT
The server should send this response header if the byte limit specified in a Maximum Response Length request field
was too small to allow a non-empty response unless the byte limit was equal to zero.
|
java.lang.String |
metareq
JPIP-metareq = "JPIP-metareq" ":" LWSP
1#( "[" 1$(req-box-prop) "]" [root-bin] [max-depth] )
[metadata-only]
req-box-prop = box-type [limit] [metareq-qualifier] [priority]
The server should send this response header if it is modifying the max-depth, limit, metareq-qualifier
or priority value provided in a Metadata Request request field.
|
java.lang.String |
mset
JPIP-mset = "JPIP-mset" ":" LWSP 1#sampled-range
The server should include this response header if the client's request contains a Model Set request field, and the
collection of codestreams identified by the client's Model Set request field differ in any way from the collection of
codestreams for which the server is actually prepared to maintain cache model information.
|
java.lang.String |
path |
int |
port |
java.lang.String |
pref
JPIP-pref = "JPIP-pref" ":" LWSP 1#related-pref-set
This response header should be provided if and only if a Client Preferences request field contained a related-
pref-set with the "/r" modifier (required), which the server was unwilling to support.
|
int |
qid
JPIP-qid = "JPIP-qid" ":" LWSP UINT
The server shall send this response header if the client's request included a Request ID qid.
|
int |
quality
JPIP-quality = "JPIP-quality" ":" LWSP (1*2DIGIT / "100" / "-1")
The server may send this response header to inform the client of the quality value that will be associated with the image
data returned once this request has been completed.
|
int[] |
roff
JPIP-roff = "JPIP-roff" ":" LWSP ox "," oy
The server should send this response header if the offset of the region for which response data will be served differs
from that requested.
|
java.lang.String |
roi |
int[] |
rsiz
JPIP-rsiz = "JPIP-rsiz" ":" LWSP sx "," sy
The server should send this response header if the size of the region for which response data will be served differs from
that requested.
|
float |
srate
JPIP-srate = "JPIP-srate" ":" LWSP UFLOAT
The server should send this response header if the average sampling rate of the codestreams which it will send to the
client is expected to differ from that requested via a Sampling Rate request field and the sampling rate is known.
|
int[][] |
stream |
java.lang.String |
tid
JPIP-tid = "JPIP-tid" ":" LWSP target-id
The server shall send this response header if the server's unique target identifier differs in any way from the identifier
supplied with a Target ID request field, or if the client did not specify a Target ID request field.
|
int |
transport |
static int |
TRANSPORT_HTTP
Allowed values for the transport attribute.
|
static int |
TRANSPORT_HTTP_TCP |
java.lang.String |
type
JPIP-type = "JPIP-type" ":" LWSP image-return-type
The server should include this response header unless another mechanism identifies the MIME subtype of the return
image data.
|
Constructor and Description |
---|
JPIPResponseFields()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ViewWindowField |
getViewWindow()
Returns the parameters related with the View Window as a ViewWindow class.
|
void |
list(java.io.PrintStream out)
Prints this JPIPResponseFields out to the specified output stream.
|
void |
reset()
Set attributes to its initial values.
|
void |
setViewWindow(ViewWindowField viewWindow) |
java.lang.String |
toString() |
public java.lang.String tid
The server shall send this response header if the server's unique target identifier differs in any way from the identifier supplied with a Target ID request field, or if the client did not specify a Target ID request field. The target-id is an arbitrary, server-assigned string, not exceeding 255 characters in length. If the Target ID request field specifies a value of "0", the server is obliged to include a Target ID response header, indicating the actual target-id. If the server is unable to assign unique identifiers to the requested logical target, and hence cannot guarantee its integrity between multiple requests or sessions, then the Target ID response header shall specify a value of 0. If the server supplies a target-id which is different from that specified in the request, it shall disregard all model, tpmodel, need and tpneed request fields when responding to this request.
public java.lang.String cid
Value | Meaning |
"transport" | This parameter shall be assigned one of the values in the list of acceptable transport names supplied in the New Channel request field. If multiple transport names were supplied in the request field, the response header shall identify the actual transport that will be used with the channel. |
"host" | This parameter identifies the name or IP address of the host for the JPIP server that is managing the new channel. The parameter need not be returned unless the host differs from that to which the request was actually sent. |
"path" | This parameter identifies the path component of the URL to be used in constructing future requests with this channel. The parameter need not be returned unless the path name differs from that used in the request which was actually sent. |
"port" | This parameter identifies the numerical port number (decimal) at which the JPIP server that is managing the new channel is listening for requests. The parameter need not be returned if the host and port number are identical to those to which the original request was sent. The parameter also need not be returned if the host differs from that to which the request was sent and the default port number associated with the relevant transport is to be used |
"auxport" | This parameter is used with transports requiring a second physical channel. If the "http-tcp" transport is used, the auxiliary port is used to connect the auxiliary TCP channel.The parameter need not be returned if the original request involved a channel that also employed an auxiliary channel, having the same auxiliary port number. Otherwise, the parameter need be returned only if the auxiliary port number differs from the default value associated with the selected transport. |
public int transport
public java.lang.String host
public java.lang.String path
public int port
public int auxport
public static final int TRANSPORT_HTTP
public static final int TRANSPORT_HTTP_TCP
public int qid
The server shall send this response header if the client's request included a Request ID qid. The value of JPIP-qid shall be identical to qid. The server shall not include a Request ID response header when the respective client request did not include a Request ID. NOTE - The server's Request ID, JPIP-qid, shall always be identical to the client's Request ID. Thus the Request ID is distinctive in that this response header is sent when the client has used the Request ID, not when the server modifies the value.
public int[] fsiz
public int[] rsiz
public int[] roff
public int[][] comps
public int[][] stream
public java.lang.String context
public java.lang.String roi
public int layers
public float srate
public java.lang.String metareq
public int len
public int quality
public java.lang.String type
public java.lang.String mset
public java.lang.String cap
ClientCapPrefField
public java.lang.String pref
public void reset()
public ViewWindowField getViewWindow()
public void setViewWindow(ViewWindowField viewWindow)
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)