public byte[] handleRequest(String request) throws IOException, MapRequestFormatException {
  Properties requestProperties=convertRequestToProps(request);
  String requestType=requestProperties.getProperty(REQUEST);
  if (requestType != null) {
    if (requestType.equalsIgnoreCase(MAP)) {
      Debug.message("imageserver","MRH: Map request...");
      return handleMapRequest(requestProperties);
    }
 else {
      throw new MapRequestFormatException("Request type not handled: " + requestType);
    }
  }
 else {
    throw new MapRequestFormatException("Request not understood: " + request);
  }
}

public byte [ ] handleRequest ( String request ) throws IOException , MapRequestFormatException { Properties requestProperties = convertRequestToProps ( request ) ; String requestType = requestProperties . getProperty ( REQUEST ) ; if ( requestType != null ) { if ( requestType . equalsIgnoreCase ( MAP ) ) { Debug . message ( "imageserver" , "MRH: Map request..." ) ; return handleMapRequest ( requestProperties ) ; } else { throw new MapRequestFormatException ( "Request type not handled: " + requestType ) ; } } else { throw new MapRequestFormatException ( "Request not understood: " + request ) ; } }
given a general request , parse it and handle it . this is the method that servlets should call . currently only handles image requests .
