public class ProcessWOI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
align
Definition in
ServerControlField.align . |
private CoRDDelivery |
cordDelivery
This object is used when the image data are sent using the
classic Characterization of Rate Distortion (CoRD) algorithm.
|
private CPIDelivery |
cpiDelivery
This object is used when the image data are sent using the Coding Passes
Interleaving (CPI) algorithm.
|
private DataLimitField |
dataLimitField |
private int |
deliveringMode
Further information, see
ServerParser.serverArguments . |
private int |
deliveringSubtype
Indicates a subtype of the
deliveringMode attribute. |
private int |
EORReasonCode
Reason code.
|
private java.lang.String |
EORReasonMessage
It is and reason message associated with the
EORReasonCode . |
private FileOrderDelivery |
fileOrderDelivery
This object is used when the image data are sent following the order of
the codestream in the file.
|
private JP2KServerLogicalTarget |
logicalTarget |
private long |
maximumResponseLength
Definition in
DataLimitField.len |
private int |
quality
Definition in
JPIPResponseFields.quality . |
private ViewWindowField |
requestedViewWindow |
private java.util.ArrayList<ResponseData> |
responseDataList |
private ViewWindowField |
responseViewWindow
Contains the view window for the image served, if it has been changed by the server.
|
private ServerCacheModel |
serverCache |
private ServerWindowScalingFactor |
WSFDelivery
This object is used when the image data are sent using the
Characterization of Rate Distortion (CoRD) algorithm.
|
Constructor and Description |
---|
ProcessWOI(JP2KServerLogicalTarget logicalTarget,
ServerCacheModel serverCache,
ViewWindowField viewWindowField,
DataLimitField dataLimitField)
Constructor.
|
ProcessWOI(JP2KServerLogicalTarget logicalTarget,
ServerCacheModel serverCache,
ViewWindowField viewWindowField,
DataLimitField dataLimitField,
boolean align)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addMetadaBin0()
Adds the metadata bin 0 to the response.
|
private void |
addTileHeader()
Adds the tile-header to the response.
|
private void |
deliveryDataCoRD()
Delivery the image WOI following the Characterization of Rate Distortion
(CoRD) algorithm
|
private void |
deliveryDataCPI()
Delivery the image WOI following the Coding Passes Interleaving (CPI)
strategy.
|
private void |
deliveryDataFileOrder()
Delivery the image WOI following the order of the codestream in the
file.
|
private void |
deliveryWindowScalingFactor()
Delivery the requested image's WOI applying a Window Scaling Factor.
|
int |
getEORReasonCode()
Gets the reason code value.
|
java.lang.String |
getEORReasonMessage()
Gets the reason message.
|
int |
getQuality()
Returns the
quality . |
java.util.ArrayList<ResponseData> |
getResponseData()
Gets the
#jpipMessageHeaders attribute. |
ViewWindowField |
getResponseViewWindow() |
private void |
processRequestedWOI() |
private void |
processWOIData() |
void |
run() |
private void |
sendEndOfResponse()
This method is used to send the End of Response of a JPIP message.
|
void |
setDeliveringMode(int deliveringMode,
int deliveringSubtype)
Sets the mode used to deliver precinct data to the client.
|
private JP2KServerLogicalTarget logicalTarget
private ServerCacheModel serverCache
private ViewWindowField requestedViewWindow
private DataLimitField dataLimitField
private int deliveringMode
ServerParser.serverArguments
.private int deliveringSubtype
deliveringMode
attribute. Thus, its
value will depend on the value taken by deliveringMode
.
Further information, see ServerParser.serverArguments
.
{
value.
private ViewWindowField responseViewWindow
private int quality
JPIPResponseFields.quality
.private int EORReasonCode
EORCodes
private java.lang.String EORReasonMessage
EORReasonCode
.
It is an optional attribute.
private java.util.ArrayList<ResponseData> responseDataList
private boolean align
ServerControlField.align
.private FileOrderDelivery fileOrderDelivery
private CPIDelivery cpiDelivery
private CoRDDelivery cordDelivery
private ServerWindowScalingFactor WSFDelivery
private long maximumResponseLength
DataLimitField.len
public ProcessWOI(JP2KServerLogicalTarget logicalTarget, ServerCacheModel serverCache, ViewWindowField viewWindowField, DataLimitField dataLimitField)
logicalTarget
- serverCache
- viewWindowField
- dataLimitField
- serverControlField
- public ProcessWOI(JP2KServerLogicalTarget logicalTarget, ServerCacheModel serverCache, ViewWindowField viewWindowField, DataLimitField dataLimitField, boolean align)
logicalTarget
- serverCache
- viewWindowField
- dataLimitField
- align
- public void setDeliveringMode(int deliveringMode, int deliveringSubtype)
deliveringMode
- definition in deliveringMode
.deliveringSubtype
- definition in deliveringSubtype
.public void run() throws java.lang.IllegalArgumentException, ErrorException
ErrorException
java.lang.IllegalArgumentException
public ViewWindowField getResponseViewWindow()
public final int getEORReasonCode()
EORReasonCode
public final java.lang.String getEORReasonMessage()
EORReasonMessage
public final java.util.ArrayList<ResponseData> getResponseData()
#jpipMessageHeaders
attribute.#jpipMessageHeaders
.private void processRequestedWOI() throws java.lang.IllegalArgumentException, ErrorException
ErrorException
java.lang.IllegalArgumentException
private void processWOIData() throws ErrorException
ErrorException
private void deliveryDataFileOrder() throws ErrorException
ErrorException
- if an error in the WOI processing has ocurred.private void deliveryDataCPI() throws ErrorException, java.lang.IllegalAccessException
httpResponseSender
- is an object which will be used to send the
the messages to the client.jpipMessageEncoder
- is an object used to build the JPIP messages.ErrorException
- if an error in the WOI processing has ocurred.java.lang.IllegalAccessException
private void deliveryDataCoRD() throws ErrorException
httpResponseSender
- is an object which will be used to send the
the messages to the client.jpipMessageEncoder
- is an object used to build the JPIP messages.java.io.IOException
- if an I/O error has ocurred.ErrorException
- if an error in the WOI processing has ocurred.private void deliveryWindowScalingFactor() throws ErrorException
ErrorException
- if an error in the WOI processing has occurred.private void addMetadaBin0()
It is a temporal method while metadata are not supported.
java.io.IOException
private void addTileHeader()
It is a temporal method while tiles are not supported.
private void sendEndOfResponse()
httpResponseSender
- jpipMessageEncoder
- java.io.IOException
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)