Package com.hbasebook.hush.servlet

Examples of com.hbasebook.hush.servlet.RequestInfo


      } else if (isQrCode) {
        // show QRCode if requested
        sendQRCode(httpResponse, surl.getLongUrl());
      } else {
        // increment counters and redirect!
        rm.getCounters().incrementUsage(shortId, new RequestInfo(httpRequest));
        String refShortId = surl.getRefShortId();
        if (refShortId != null) {
          // increment the aggregate link
          rm.getCounters().incrementUsage(refShortId,
            new RequestInfo(httpRequest));
        }
        httpResponse.sendRedirect(surl.getLongUrl());
      }
    }
  }
View Full Code Here


   */
  private void initializeAdminStats() throws IOException {
    Map<RequestInfo.InfoName, String> props =
      new HashMap<RequestInfo.InfoName, String>();
    props.put(RequestInfo.InfoName.RemoteAddr, getRandomIp());
    RequestInfo info = new RequestInfo(props);
    ShortUrl shortUrl = rm.getUrlManager().shorten(
      new URL("http://hbasebook.com"), "admin", info);
    Calendar startDate = Calendar.getInstance();
    startDate.set(2011, 1, 1);
    Calendar endDate = Calendar.getInstance();
View Full Code Here

TOP

Related Classes of com.hbasebook.hush.servlet.RequestInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.