Package com.liusoft.dlog4j

Examples of com.liusoft.dlog4j.HttpContext


      final HttpServletResponse response, String s_photo_id) throws Exception  
  {
    int photo_id = Integer.parseInt(s_photo_id);
    _PhotoBase pbean = PhotoDAO.getPhotoOutlineByID(photo_id);
    if(pbean != null){
      HttpContext http_ctx = getHttpContext(mapping, form, request, response);
      rotate(http_ctx, pbean.getImageURL(), 8);
    }
    return null;
  }
View Full Code Here


      final HttpServletResponse response, String s_photo_id) throws Exception  
  {
    int photo_id = Integer.parseInt(s_photo_id);
    _PhotoBase pbean = PhotoDAO.getPhotoOutlineByID(photo_id);
    if(pbean != null){
      HttpContext http_ctx = getHttpContext(mapping, form, request, response);
      rotate(http_ctx, pbean.getImageURL(), 6);
    }
    return null;
  }
View Full Code Here

    //ɾ����Ƭ�ļ�
    int photo_id = Integer.parseInt(s_photo_id);
    PhotoBean pbean = PhotoDAO.getPhotoByID(photo_id);
    String ext = null;
    if(pbean != null){
      HttpContext context = getHttpContext(mapping, form, request, response);
      getPhotoSaver().delete(context, pbean.getImageURL());
      if(!pbean.getPreviewURL().equals(pbean.getImageURL()))
        getPhotoSaver().delete(context, pbean.getPreviewURL());
      //ɾ�����ݿ���Ϣ
      PhotoDAO.delete(pbean);
View Full Code Here

 
  protected HttpContext getHttpContext(final ActionMapping mapping,
      final ActionForm form, final HttpServletRequest request,
      final HttpServletResponse response) {
    final ServletContext context = super.context();
    return new HttpContext() {
      public HttpServletRequest getRequest() {
        return request;
      }

      public HttpServletResponse getResponse() {
View Full Code Here

TOP

Related Classes of com.liusoft.dlog4j.HttpContext

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.