CADI.Proxy.Core
Class FetchTarget

java.lang.Object
  extended by java.lang.Thread
      extended by CADI.Proxy.Core.FetchTarget
All Implemented Interfaces:
java.lang.Runnable

public class FetchTarget
extends java.lang.Thread

Version:
1.0 2009/08/29
Author:
Group on Interactive Coding of Images (GICI)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  long bytesJPIPMessageBody
          Is used to save the amount of received bytes in the JPIP message body.
private  long bytesJPIPMessageHeader
          Is used to save the amount of received bytes in the JPIP message header.
private  java.util.ArrayList<CacheDescriptor> cacheDescriptor
           
private  ProxyCacheManagement cacheManagement
           
private  java.lang.String clientUserAgent
           
private  java.lang.Exception exception
           
private  HTTPClient httpClient
           
private  CADILog log
           
private  StopWatch stopWatch
           
private  ViewWindowField viewWindow
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FetchTarget()
          This class constructor is not allowed.
FetchTarget(java.lang.String threadName, HTTPClient httpClient, ViewWindowField viewWindow, java.util.ArrayList<CacheDescriptor> cacheDescriptor, ProxyCacheManagement cacheManagement, CADILog log)
          Constructor.
 
Method Summary
private  java.lang.String createJPIPRequest(ViewWindowField viewWindow, java.util.ArrayList<CacheDescriptor> cacheDescriptor)
           
 java.lang.Exception getException()
           
 void run()
           
 void setClientUserAgent(java.lang.String clientUserAgent)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

httpClient

private HTTPClient httpClient

viewWindow

private ViewWindowField viewWindow

cacheDescriptor

private java.util.ArrayList<CacheDescriptor> cacheDescriptor

cacheManagement

private ProxyCacheManagement cacheManagement

log

private CADILog log

exception

private java.lang.Exception exception

stopWatch

private StopWatch stopWatch

bytesJPIPMessageBody

private long bytesJPIPMessageBody
Is used to save the amount of received bytes in the JPIP message body.


bytesJPIPMessageHeader

private long bytesJPIPMessageHeader
Is used to save the amount of received bytes in the JPIP message header.


clientUserAgent

private java.lang.String clientUserAgent
Constructor Detail

FetchTarget

public FetchTarget()
This class constructor is not allowed.


FetchTarget

public FetchTarget(java.lang.String threadName,
                   HTTPClient httpClient,
                   ViewWindowField viewWindow,
                   java.util.ArrayList<CacheDescriptor> cacheDescriptor,
                   ProxyCacheManagement cacheManagement,
                   CADILog log)
Constructor.

Parameters:
httpClient -
viewWindow -
cacheDescriptor -
cacheManagement -
log -
Method Detail

setClientUserAgent

public void setClientUserAgent(java.lang.String clientUserAgent)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getException

public java.lang.Exception getException()

createJPIPRequest

private java.lang.String createJPIPRequest(ViewWindowField viewWindow,
                                           java.util.ArrayList<CacheDescriptor> cacheDescriptor)


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)