public class ProxySessionTarget extends ClientSideSessionTarget
Modifier and Type | Field and Description |
---|---|
private ProxyCacheManagement |
cache
It is a cache of logical target's data downloaded from the server.
|
private JP2KProxyLogicalTarget |
jp2kProxyLogicalTarget |
private java.lang.String |
proxyTID
Is the Target Identifier (TID) of this logical target given by the JPIP
Proxy server.
|
private java.lang.String |
proxyVia |
private PredictiveScalingFactors |
scalingFactors
Definition in
PredictiveScalingFactors . |
align, allowedReturnTypes, channels, debug, descriptorQualifier, descriptorType, extendedHeaders, lock, log, managementPolicy, MAX_HISTORY_RECORDS, maxCacheSize, maxTargetLength, port, preferredTransportProtocols, recordWOIHistory, responseViewWindow, reuseCache, server, sid, subtarget, target, useKeepAlive, userAgent, wait, woiHistory
returnType, tid
Constructor and Description |
---|
ProxySessionTarget(java.lang.String server,
int port,
java.lang.String target,
java.util.ArrayList<java.lang.String> preferredTransportProtocols,
CADILog log) |
ProxySessionTarget(java.lang.String server,
int port,
java.lang.String target,
CADILog log) |
Modifier and Type | Method and Description |
---|---|
void |
checkAvailableData(ViewWindowField viewWindow,
java.util.ArrayList<RelevantPrecinct> relevantPrecincts,
ProxyCacheModel cacheModel,
java.util.ArrayList<SendDataInfo> availableData,
java.util.ArrayList<SendDataInfo> unAvailableData) |
void |
closeSession()
Closes the session with the server.
|
void |
fetchWindow(ViewWindowField requestViewWindow)
Get the target target window of interest.
|
void |
fetchWindow(ViewWindowField requestViewWindow,
boolean recordWOI)
Get the target target window of interest.
|
ProxyCacheManagement |
getCacheManagement() |
ProxyJPEG2KCodestream |
getCodestream()
Returns the
#jpcParameters attribute. |
JP2KProxyLogicalTarget |
getJP2KProxyLogicalTarget()
Returns the
jp2kProxyLogicalTarget attribute. |
void |
getMainHeader()
Gets the main header of the logical target.
|
int |
getManagementPolicy() |
long |
getMaxCacheSize() |
PredictiveScalingFactors |
getPredictiveModel() |
java.lang.String |
getProxyTID()
Returns the
proxyTID attribute. |
void |
getRemainder(ProxyCacheModel cacheModel,
java.util.ArrayList<SendDataInfo> unAvailableData) |
void |
getRequest(java.lang.String requestURI) |
boolean |
isAvailable(long inClassIdentifier,
int layer) |
boolean |
isAvailable(ViewWindowField viewWindow) |
void |
list(java.io.PrintStream out)
Prints this Proxy Session Target out to the specified output stream.
|
private java.lang.String |
manageChannels() |
java.lang.String |
newChannel() |
java.lang.String |
newChannel(java.util.ArrayList<java.lang.String> preferredTransportProtocols) |
java.lang.String |
newChannel(java.lang.String transport) |
void |
remove()
Removes all the attributes.
|
void |
setAllowedReturnTypes(int[] returnTypes) |
void |
setManagementPolicy(int managementPolicy) |
void |
setMaxCacheSize(long maxCacheSize) |
void |
setPredictiveModel(PredictiveScalingFactors scalingFactors) |
void |
setProxyVia(java.lang.String via) |
java.lang.String |
toString() |
addWOIHistory, closeChannel, contains, copyJPIPResponseFields, generateUID, getBytesJPIPMessageBody, getBytesJPIPMessageHeader, getCacheDescriptorQualifier, getCacheDescriptorType, getDownloadedBytes, getJPIPResponseFields, getLocalCID, getLocalCIDs, getPort, getRequestedURI, getServer, getSessionID, getTarget, getWOIHistory, lock, newChannel, newChannel, newChannel, newChannel, numOfChannels, resetJPIPMessagesCounters, reuseCache, setAlign, setAllowedReturnTypes, setCacheDescriptor, setCacheDescriptorType, setDebug, setMaxTargetLength, setPort, setRecordWOIHistory, setUseHTTPSession, setUseHTTPTCPSession, setUseIndexRange, setUseKeepAlive, setUseNumberOfBytes, setUseNumberOfLayers, setUserAgent, setUseWildcard, setWait, unlock, useIndexRange, useNumberOfBytes, useNumberOfLayers, useWildcard
getChannel, getCid, getCids, getReturnType, getTid, getTID, setTID
private java.lang.String proxyTID
tid
but it is not mandatory.
Note: this attribute could be replaced by the ClientSideSessionTarget.sid
.
private ProxyCacheManagement cache
private JP2KProxyLogicalTarget jp2kProxyLogicalTarget
private java.lang.String proxyVia
private PredictiveScalingFactors scalingFactors
PredictiveScalingFactors
.public ProxySessionTarget(java.lang.String server, int port, java.lang.String target, CADILog log)
server
- port
- target
- log
- public ProxySessionTarget(java.lang.String server, int port, java.lang.String target, java.util.ArrayList<java.lang.String> preferredTransportProtocols, CADILog log)
server
- port
- target
- preferredTransportProtocols
- log
- public java.lang.String newChannel()
newChannel
in class SessionTarget
public java.lang.String newChannel(java.lang.String transport)
newChannel
in class SessionTarget
transport
- public java.lang.String newChannel(java.util.ArrayList<java.lang.String> preferredTransportProtocols)
preferredTransportProtocols
- public java.lang.String getProxyTID()
proxyTID
attribute.proxyTID
.public int getManagementPolicy()
public long getMaxCacheSize()
public void remove()
remove
in class ClientSideSessionTarget
public void setMaxCacheSize(long maxCacheSize)
public void setManagementPolicy(int managementPolicy)
public void setAllowedReturnTypes(int[] returnTypes)
public void getRequest(java.lang.String requestURI) throws WarningException
requestURI
- WarningException
public void fetchWindow(ViewWindowField requestViewWindow) throws ErrorException
viewWindow
- the target Window Of Interest to fetch.ErrorException
- if an error occurs fetching the WOI.public void fetchWindow(ViewWindowField requestViewWindow, boolean recordWOI) throws ErrorException
fetchWindow
in class ClientSideSessionTarget
requestViewWindow
- the target Window Of Interest to fetch.recordWOI
- ErrorException
- if an error occurs fetching the WOI.#getWindow(CADI.Common.Network.JPIP.ViewWindowField, boolean)}.
public void getMainHeader() throws ErrorException
ErrorException
- if an error occurs while main header is being
fetched or received data cannot be decompressed correctly.public void closeSession() throws ErrorException
ClientSideSessionTarget
closeSession
in class ClientSideSessionTarget
ErrorException
public final ProxyJPEG2KCodestream getCodestream()
#jpcParameters
attribute.#jpcParameters
.public final JP2KProxyLogicalTarget getJP2KProxyLogicalTarget()
jp2kProxyLogicalTarget
attribute.jp2kProxyLogicalTarget
.public ProxyCacheManagement getCacheManagement()
public void checkAvailableData(ViewWindowField viewWindow, java.util.ArrayList<RelevantPrecinct> relevantPrecincts, ProxyCacheModel cacheModel, java.util.ArrayList<SendDataInfo> availableData, java.util.ArrayList<SendDataInfo> unAvailableData)
viewWindow
- relevantPrecincts
- cacheManagement
- availableData
- unAvailableData
- public void getRemainder(ProxyCacheModel cacheModel, java.util.ArrayList<SendDataInfo> unAvailableData)
unAvailableData
- public void setProxyVia(java.lang.String via)
via
- public boolean isAvailable(long inClassIdentifier, int layer)
isAvailable
in class ClientSideSessionTarget
inClassIdentifier
- layer
- public boolean isAvailable(ViewWindowField viewWindow)
isAvailable
in class ClientSideSessionTarget
viewWindow
- public void setPredictiveModel(PredictiveScalingFactors scalingFactors)
public PredictiveScalingFactors getPredictiveModel()
public java.lang.String toString()
toString
in class ClientSideSessionTarget
public void list(java.io.PrintStream out)
list
in class ClientSideSessionTarget
out
- an output stream.private java.lang.String manageChannels()
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)