ucar.unidata.idv
Class ImageServer

java.lang.Object
  extended by ucar.unidata.util.HttpServer
      extended by ucar.unidata.idv.ImageServer

public class ImageServer
extends HttpServer

Creates and serves up images via http


Nested Class Summary
static class ImageServer.ImageRequestHandler
          Class ImageRequestHandler handles image server requests
 
Nested classes/interfaces inherited from class ucar.unidata.util.HttpServer
HttpServer.RequestHandler
 
Field Summary
static String ARG_BUNDLE
          http image arg
static String ARG_DATASOURCE
          http image arg
static String ARG_DISPLAY
          http image arg
static String ARG_FILE
          http image arg
static String ARG_HEIGHT
          _more_
static String ARG_PARAM
          http image arg
static String ARG_PROPERTIES
          http image arg
static String ARG_REQUEST
          http image arg
static String ARG_WIDTH
          _more_
static String REQ_EXIT
          http image arg
static String REQ_MAKEIMAGE
          http image arg
static String REQ_MAKEMOVIE
          http image arg
 
Fields inherited from class ucar.unidata.util.HttpServer
RESPONSE_INTERNALERROR, RESPONSE_NOTFOUND, RESPONSE_OK, RESPONSE_UNAUTHORIZED, serverProperties, TYPE_GET, TYPE_POST
 
Constructor Summary
ImageServer(IntegratedDataViewer idv, int port)
          ctor
ImageServer(IntegratedDataViewer idv, String propertyFile)
          ctor
 
Method Summary
protected  HttpServer.RequestHandler doMakeRequestHandler(Socket socket)
          Create the request handler for the connection
 
Methods inherited from class ucar.unidata.util.HttpServer
getPort, getProperties, handleError, init, initServerSocket, setPort, xxxxmain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARG_REQUEST

public static final String ARG_REQUEST
http image arg

See Also:
Constant Field Values

ARG_FILE

public static final String ARG_FILE
http image arg

See Also:
Constant Field Values

ARG_BUNDLE

public static final String ARG_BUNDLE
http image arg

See Also:
Constant Field Values

ARG_DATASOURCE

public static final String ARG_DATASOURCE
http image arg

See Also:
Constant Field Values

ARG_PARAM

public static final String ARG_PARAM
http image arg

See Also:
Constant Field Values

ARG_DISPLAY

public static final String ARG_DISPLAY
http image arg

See Also:
Constant Field Values

ARG_PROPERTIES

public static final String ARG_PROPERTIES
http image arg

See Also:
Constant Field Values

ARG_WIDTH

public static final String ARG_WIDTH
_more_

See Also:
Constant Field Values

ARG_HEIGHT

public static final String ARG_HEIGHT
_more_

See Also:
Constant Field Values

REQ_MAKEMOVIE

public static final String REQ_MAKEMOVIE
http image arg

See Also:
Constant Field Values

REQ_MAKEIMAGE

public static final String REQ_MAKEIMAGE
http image arg

See Also:
Constant Field Values

REQ_EXIT

public static final String REQ_EXIT
http image arg

See Also:
Constant Field Values
Constructor Detail

ImageServer

public ImageServer(IntegratedDataViewer idv,
                   int port)
ctor

Parameters:
idv - The idv
port - The port

ImageServer

public ImageServer(IntegratedDataViewer idv,
                   String propertyFile)
ctor

Parameters:
idv - The idv
propertyFile - server properties
Method Detail

doMakeRequestHandler

protected HttpServer.RequestHandler doMakeRequestHandler(Socket socket)
                                                  throws Exception
Create the request handler for the connection

Overrides:
doMakeRequestHandler in class HttpServer
Parameters:
socket - The connection
Returns:
The handler
Throws:
Exception - On badness