public class JPIPResponseFieldsParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
cnewTransportParamFields |
(package private) HTTPResponse |
httpResponse |
private boolean[] |
jpipHeaderFieldsFound |
(package private) JPIPResponseFields |
jpipResponseFields |
private static java.lang.String[] |
jpipResponseHeaderFields
ISO/IEC 15444-9 Annex D
|
Constructor and Description |
---|
JPIPResponseFieldsParser()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
capParser(java.lang.String cap) |
private void |
channelNewParser(java.lang.String cnew) |
private void |
compsParser(java.lang.String comps) |
private void |
contextParser(java.lang.String context) |
private void |
fsizParser(java.lang.String fsiz) |
HTTPResponse |
getHTTPResponse()
Returns an object which contains the http response field values.
|
JPIPResponseFields |
getJPIPResponseFields() |
private void |
layersParser(java.lang.String layers) |
private void |
lenParser(java.lang.String len) |
void |
list(java.io.PrintStream out)
Prints this JPIP Response Fields out to the specified output stream.
|
private void |
metareqParser(java.lang.String metareq) |
private void |
msetParser(java.lang.String mset) |
void |
parse(java.util.HashMap<java.lang.String,java.lang.String> headers)
Parses the JPIP response fields
|
protected void |
prefParser(java.lang.String pref) |
private void |
qualityParser(java.lang.String quality) |
private void |
requestIDParser(java.lang.String qid) |
void |
reset()
Sets the class atributes to initial values
|
private void |
roffParser(java.lang.String roff) |
protected void |
roiParser(java.lang.String string) |
private void |
rsizParser(java.lang.String rsiz) |
private void |
srateParser(java.lang.String srate) |
private void |
streamParser(java.lang.String stream) |
private void |
targetIDParser(java.lang.String tid) |
java.lang.String |
toString()
For debugging purposes.
|
private void |
typeParser(java.lang.String type) |
HTTPResponse httpResponse
JPIPResponseFields jpipResponseFields
private boolean[] jpipHeaderFieldsFound
private static java.lang.String[] jpipResponseHeaderFields
private static java.lang.String[] cnewTransportParamFields
public void parse(java.util.HashMap<java.lang.String,java.lang.String> headers) throws WarningException
headers
- definition in #headers
.WarningException
- this exception will be thrown whether a JPIP
response parameter is wrong.public void reset()
public JPIPResponseFields getJPIPResponseFields()
jpipResponseFields
attribute.public HTTPResponse getHTTPResponse()
httpResponse
attributepublic java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.private void targetIDParser(java.lang.String tid) throws WarningException
tid
- definition in JPIPResponseFields.tid
java.lang.Exception
- when the request element is wrongWarningException
private void channelNewParser(java.lang.String cnew) throws WarningException
cnew
- definition in ChannelField.cnew
WarningException
- when the request element is wrongprivate void requestIDParser(java.lang.String qid) throws WarningException
qid
- defined in JPIPResponseFields.qid
WarningException
- when the request element is wrongprivate void fsizParser(java.lang.String fsiz) throws WarningException
fsiz
- defined in JPIPResponseFields.fsiz
WarningException
- when the request element is wrongprivate void roffParser(java.lang.String roff) throws WarningException
roff
- defined in JPIPResponseFields.roff
WarningException
- when the request element is wrongprivate void rsizParser(java.lang.String rsiz) throws WarningException
rsiz
- defined in JPIPResponseFields.rsiz
WarningException
- when the request element is wrongprivate void compsParser(java.lang.String comps) throws WarningException
comps
- definition in JPIPResponseFields.comps
WarningException
- when the request element is wrongprivate void streamParser(java.lang.String stream) throws WarningException
stream
- defined in JPIPResponseFields.stream
WarningException
- when the request element is wrongprivate void contextParser(java.lang.String context) throws WarningException
context
- defined in JPIPResponseFields.context
WarningException
- when the request element is wrongprotected void roiParser(java.lang.String string)
private void layersParser(java.lang.String layers) throws WarningException
layers
- defined in JPIPResponseFields.layers
WarningException
- when the request element is wrongprivate void srateParser(java.lang.String srate) throws WarningException
srate
- defined in JPIPResponseFields.srate
WarningException
private void metareqParser(java.lang.String metareq)
metareq
- defined in JPIPResponseFields.metareq
private void lenParser(java.lang.String len) throws WarningException
len
- defined in JPIPResponseFields.len
WarningException
- when the request element is wrongprivate void qualityParser(java.lang.String quality) throws WarningException
quality
- defined in JPIPResponseFields.quality
WarningException
- when the request element is wrongprivate void typeParser(java.lang.String type) throws WarningException
type
- defined in JPIPResponseFields.type
WarningException
private void msetParser(java.lang.String mset)
mset
- defined in JPIPResponseFields.mset
private void capParser(java.lang.String cap)
cap
- defined in JPIPResponseFields.cap
protected void prefParser(java.lang.String pref)
pref
- defined in JPIPResponseFields.pref
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)