亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? naviservlet.java

?? mapxtreme for java 的開發實例
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package mxtj45;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// declare imports////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// J2SE 1.3.1 importsimport java.io.IOException;import java.io.PrintWriter;import java.util.Enumeration;// J2EE 1.3.1 importsimport javax.servlet.*;import javax.servlet.http.*;// mxtj45. importsimport java.awt.*;import com.mapinfo.mapj.*;import com.mapinfo.mapxtreme.client.*;import com.mapinfo.util.*;import com.mapinfo.xmlprot.mxtj.*;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// top-level public class/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////** * simple servlet that performs zoom / pan operations on an MDF file defined * map, such that all map images are stored on the webserver as GIF files in a * publicly accessible context directory, and client state is maintained in * a servlet session with session ID values being conveyed via URL rewriting. * * @author John Dove, MapInfo Technical Support Department, 2002 */public class NaviServlet extends HttpServlet{  //////////////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////////////  // fields  //////////////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////////////  //----------------------------------------------------------------------------  // static fields loaded as servlet initialization parameters  //----------------------------------------------------------------------------  /**   * absolute path of MDF file to load into all MapJ object.   */  // REQUIRED IN WEB.XML  static private String m_mdfFileToLoad;  /**   * url of the MapXtremeJava 4.5 servlet that is used for remote rendering.   */  // REQUIRED IN WEB.XML  static private String m_urlOfMapXtremeServlet;  /**   * directory to create GIF files in on webserver machine.  These GIF images   * will be referred to by URL links within the HTML documents returned to   * clients.   */  // REQUIRED IN WEB.XML  static private String m_imageDirectory;  /**   * flag that indicates if all the servlet initialization parameters were   * loaded upon servlet startup.   */  static boolean m_allInitParamsLoaded;  //----------------------------------------------------------------------------  // names of HTTP parameters that can be sent by client  //----------------------------------------------------------------------------  /**   * identifier for the http param that denotes the "type" of request sent by   * a client.   */  static private String m_param_requestType = "action";  /**   * holds X-axis value of mouse click made by client on the map.   */  static private String m_param_screenClickX = "map.x";  /**   * holds Y-axis value of mouse click made by client on the map.   */  static private String m_param_screenClickY = "map.y";  /**   * http param value that denotes zoom-in operation.   */  static private String m_requestZoomIn = "zin";  /**   * http param value that denotes zoom-out operation.   */  static private String m_requestZoomOut = "zout";  /**   * http param value that denotes pan operation.   */  static private String m_requestPan = "pan";  //----------------------------------------------------------------------------  // static fields with names for session stored objects  //----------------------------------------------------------------------------  /**   * name assigned to MapJ object when stored to session.   */  static private String m_sessionNameForMapJ = "mapj";  /**   * will be accessed via a synchronized code block to provide unique   * incrementing long values on a per client-request basis   */  static private long sequenceNumber;  // defaults to zero  //////////////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////////////  // methods  //////////////////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////////////////  public void init() throws ServletException  {    System.out.println("NAVI SERVLET INITIALIZING...");    // assume that all initialization parameters will NOT be loaded    NaviServlet.m_allInitParamsLoaded = false;    //--------------------------------------------------------------------------    // read the following initialization parameters, which should all be defined    // in the deployment descriptor (web.xml) file of the web application that    // this servlet is a part of.    //    // 1. mdfFileToLoad    // 2. urlOfMapXtremeServlet    //    // if any of these parameters are NOT obtained, we will throw an exception.    //--------------------------------------------------------------------------    m_mdfFileToLoad = this.getInitParameter("mdfFileToLoad");    m_urlOfMapXtremeServlet = this.getInitParameter("urlOfMapXtremeServlet");    m_imageDirectory = this.getInitParameter("imageDirectory");    System.out.println("");    System.out.println("SERVLET INIT PARAMETERS:");    System.out.println("  mdfFileToLoad = ["+m_mdfFileToLoad+"]");    System.out.println("  urlOfMapXtremeServlet = ["+m_urlOfMapXtremeServlet+"]");    System.out.println("  imageDirectory = ["+m_imageDirectory+"]");    System.out.println("");    if (m_mdfFileToLoad == null)    {      throw new ServletException("init param [mdfFileToLoad] was null.");    }    else if (m_urlOfMapXtremeServlet == null)    {      throw new ServletException("init param [urlOfMapXtremeServlet] was null.");    }    else if (m_imageDirectory == null)    {      throw new ServletException("init param [imageDirectory] was null.");    }    // if we made it here, it means all the needed init params were obtained    NaviServlet.m_allInitParamsLoaded = true;  }  /**   * handles HTTP GET requests.  This method will execute in a separate thread   * within the servlet container's JVM.   *   * @param req an HttpServletRequest object that contains the request the   *        client has made of the servlet   * @param resp an HttpServletResponse object that contains the response the   *        servlet sends to the client   * @throw java.io.IOException if an input or output error is detected when   *        the servlet handles the GET request   * @throw ServletException if the request for the GET could not be handled   *   */  protected void doGet(HttpServletRequest req, HttpServletResponse resp)  throws ServletException,java.io.IOException  {    this.doPost(req,resp);  }  /**   * handles HTTP POST requests.  This method will execute in a separate thread   * within the servlet container's JVM.   *   * @param req an HttpServletRequest object that contains the request the   *        client has made of the servlet   * @param resp an HttpServletResponse object that contains the response the   *        servlet sends to the client   * @throw java.io.IOException if an input or output error is detected when   *        the servlet handles the request   * @throw ServletException - if the request for the POST could not be handled   */  protected void doPost(HttpServletRequest req,HttpServletResponse resp)  throws ServletException,java.io.IOException  {    String httpParam_requestType = null;  // http param sent by client    String httpParam_clickX = null;       // http param sent by client    String httpParam_clickY = null;       // http param sent by client    HttpSession clientSession = null;     // client's session object    MapJ mapj = null;                     // client's map-state object    try    {      // throw exception if NOT all servlet init params were loaded on startup.      // since this is the case, NO response will be sent back to the client.      if (!NaviServlet.m_allInitParamsLoaded)      {        throw new ServletException("SOME SERVLET INIT PARAMS ARE MISSING.");      }      // read http parameters sent by client      httpParam_requestType = req.getParameter(NaviServlet.m_param_requestType);      httpParam_clickX = req.getParameter(NaviServlet.m_param_screenClickX);      httpParam_clickY = req.getParameter(NaviServlet.m_param_screenClickY);      //------------------------------------------------------------------------      // if NO request type http param was sent, we will assume this is the      // client's FIRST request to this servlet      //------------------------------------------------------------------------      if (httpParam_requestType == null)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人18精品视频| 一区二区三区蜜桃| 亚洲综合av网| 国产一区二区三区电影在线观看 | 久久66热re国产| 色婷婷av一区二区三区大白胸 | 蜜臀av一区二区在线观看| 一本久久精品一区二区| 国产欧美日韩在线视频| 五月天一区二区三区| 99麻豆久久久国产精品免费优播| 懂色av中文一区二区三区| 色欲综合视频天天天| 国产免费观看久久| 激情综合网激情| 欧美精品乱人伦久久久久久| 亚洲日韩欧美一区二区在线| 国产精品456| 26uuu国产在线精品一区二区| 亚洲1区2区3区4区| 91丝袜美女网| 亚洲精品视频在线看| 成人av网在线| 亚洲日本在线看| 99久久er热在这里只有精品15| 久久精品一区二区三区av| 麻豆精品在线看| 欧美大白屁股肥臀xxxxxx| 91原创在线视频| 6080yy午夜一二三区久久| 日韩美女精品在线| 高清视频一区二区| 久久久久久久久久电影| 国产一区二区三区四| 久久久久国产一区二区三区四区| 另类人妖一区二区av| 欧美成人精品二区三区99精品| 奇米影视一区二区三区| 精品国产三级a在线观看| 激情六月婷婷久久| 欧美高清一级片在线观看| caoporen国产精品视频| 中文字幕一区二区视频| 91女神在线视频| 亚洲愉拍自拍另类高清精品| 欧美精品日韩一区| 国产中文一区二区三区| 欧美激情一区二区三区四区| va亚洲va日韩不卡在线观看| 一区二区三区在线不卡| 在线观看91av| 国产成人av福利| 亚洲美女少妇撒尿| 欧美日韩国产免费| 国产精品自拍毛片| 亚洲同性gay激情无套| 911精品国产一区二区在线| 黄网站免费久久| 日韩一区在线免费观看| 欧美精品精品一区| 国产精品一二三四五| 亚洲国产三级在线| 337p日本欧洲亚洲大胆精品| 99re这里只有精品首页| 蜜桃视频在线一区| 亚洲裸体在线观看| 日韩欧美中文字幕制服| 97超碰欧美中文字幕| 久久精品国产99国产| 亚洲欧洲日韩av| 日韩女优电影在线观看| 色综合一区二区三区| 国产在线观看免费一区| 一区二区三区日韩精品视频| 久久久久九九视频| 欧美精品高清视频| av在线免费不卡| 久久99精品久久久久久久久久久久 | 精品国一区二区三区| 99精品热视频| 国模一区二区三区白浆| 亚洲综合视频在线| 欧美国产激情一区二区三区蜜月| 欧美日韩一级二级| 91视频91自| 国产精品18久久久久久久久| 日韩激情中文字幕| 亚洲乱码国产乱码精品精小说| 久久婷婷综合激情| 欧美不卡激情三级在线观看| 欧美亚洲高清一区二区三区不卡| 成人免费av资源| 国产在线视频一区二区三区| 视频一区二区国产| 亚洲一区二区高清| 亚洲欧美日韩国产一区二区三区| 国产亚洲欧美激情| 精品国产1区二区| 欧美伦理影视网| 欧美日韩久久一区二区| 91国在线观看| 日本精品视频一区二区| 99久久婷婷国产| av电影在线观看完整版一区二区| 国产美女在线观看一区| 韩国理伦片一区二区三区在线播放 | 国产原创一区二区三区| 日韩专区中文字幕一区二区| 亚洲尤物视频在线| 亚洲国产综合色| 亚洲小说欧美激情另类| 一区二区三区蜜桃| 一区二区三区色| 亚洲一区日韩精品中文字幕| 亚洲一卡二卡三卡四卡五卡| 亚洲女女做受ⅹxx高潮| 一区二区在线免费观看| 一区二区三区不卡视频在线观看| 亚洲人成精品久久久久久| 成人欧美一区二区三区黑人麻豆 | 一区二区三区欧美| 亚洲国产精品久久艾草纯爱| 午夜影视日本亚洲欧洲精品| 日日摸夜夜添夜夜添精品视频| 亚洲第一激情av| 日韩成人一级片| 久久精品国产一区二区| 国产伦理精品不卡| 成人av免费在线| 欧美中文字幕久久| 日韩午夜在线观看| 久久久久久久久久久久久久久99| 久久免费看少妇高潮| 亚洲三级免费观看| 亚洲成av人在线观看| 精品在线一区二区| 成人午夜碰碰视频| 欧美色精品天天在线观看视频| 91精品国产综合久久香蕉麻豆| 亚洲精品一区二区三区影院| 国产欧美日产一区| 亚洲v中文字幕| 久久97超碰国产精品超碰| 成人免费的视频| 欧美日韩国产影片| 久久久噜噜噜久久中文字幕色伊伊 | 欧美精品一区二| 亚洲精品欧美综合四区| 日韩av一级电影| 不卡的电影网站| 欧美丰满少妇xxxxx高潮对白 | 一二三四社区欧美黄| 捆绑变态av一区二区三区| 波多野结衣在线一区| 91麻豆精品国产91久久久资源速度| 久久久久国产精品麻豆ai换脸| 亚洲精品国产第一综合99久久| 麻豆精品国产91久久久久久| 色综合天天综合在线视频| 91精品国产高清一区二区三区| 中文字幕在线观看一区二区| 日韩精品亚洲专区| 色婷婷综合在线| 国产校园另类小说区| 喷水一区二区三区| 一本色道**综合亚洲精品蜜桃冫 | 欧美日韩高清影院| 国产日韩欧美激情| 美腿丝袜在线亚洲一区 | 日韩欧美综合在线| 亚洲精品成a人| 国产成+人+日韩+欧美+亚洲| 7777精品伊人久久久大香线蕉 | jlzzjlzz欧美大全| 欧美videos大乳护士334| 亚洲最新在线观看| 成人黄色一级视频| 久久色成人在线| 日韩精品91亚洲二区在线观看 | 日韩一区二区在线免费观看| 亚洲免费av高清| 99九九99九九九视频精品| 久久久影院官网| 激情综合五月天| 日韩免费在线观看| 琪琪一区二区三区| 欧美老人xxxx18| 日韩国产在线一| 欧美电影影音先锋| 亚洲bdsm女犯bdsm网站| 91国偷自产一区二区开放时间| 中文字幕人成不卡一区| 成人成人成人在线视频| 国产精品视频一二三区| 成人网页在线观看| 日本一区二区综合亚洲| 成人午夜av电影| 亚洲色图制服丝袜| 在线观看亚洲成人| 天天综合天天综合色|