Examples of ClientInfo


Examples of com.liusoft.dlog4j.base.ClientInfo

public class TopicBean extends _TopicBeanBase implements SearchEnabled{
 
  public TopicBean(){}
 
  public TopicBean(HttpServletRequest req, int client_type){
    super.client = new ClientInfo(req, client_type);
    super.setCreateTime(new Date());
  }
View Full Code Here

Examples of com.liusoft.dlog4j.base.ClientInfo

  protected String title;

  public TopicReplyBean(){}
 
  public TopicReplyBean(HttpServletRequest req, int client_type){
    super.client = new ClientInfo(req, client_type);
    super.replyTime = new Date();
  }
View Full Code Here

Examples of com.liusoft.dlog4j.base.ClientInfo

            new Integer(rform.getTid())));
        break;
      }
      // ����TopicBean
      TopicReplyBean reply = new TopicReplyBean();
      reply.setClient(new ClientInfo(request, rform.getClientType()));
      String content = StringUtils.abbreviate(super.autoFiltrate(null,
          rform.getContent()), MAX_REPLY_LENGTH);
      reply.setContent(super.filterScriptAndStyle(content));
      reply.setReplyTime(new Date());
      reply.setSite(site);
View Full Code Here

Examples of com.liusoft.dlog4j.base.ClientInfo

          log.getContent()), MAX_TOPIC_LENGTH);
      topic.setContent(super.filterScriptAndStyle(content));
      // FIXME: �����ؼ���̫���������ݿ�д��ʧ�ܵ�����
      topic.setKeyword(DLOGSecurityManager.IllegalGlossary
          .deleteIllegalWord(log.getSearchKey()));
      topic.setClient(new ClientInfo(request, log.getClientType()));
      topic.setCreateTime(new Date());
      topic.setForum(forum);
      topic.setStatus(TopicBean.STATUS_NORMAL);
      if(site.getOwner().getId()==loginUser.getId()){
        if (log.getTop() == 1)
View Full Code Here

Examples of com.liusoft.dlog4j.base.ClientInfo

      GuestBookBean msgbean = new GuestBookBean();
      String content = super.autoFiltrate(site,msgform.getContent());
      if(content.length()>MAX_GB_COUNT_LENGTH)
        content = content.substring(0, MAX_GB_COUNT_LENGTH);
      msgbean.setContent(super.filterScriptAndStyle(content));
      msgbean.setClient(new ClientInfo(request, 0));
      msgbean.setUser(loginUser);
      msgbean.setSiteId(site.getId());
      try{
        GuestBookDAO.createMsg(msgbean);
      }catch(HibernateException e){
View Full Code Here

Examples of com.trulytech.mantis.util.ClientInfo

  protected String PerformPost(HttpServletRequest request,
      HttpServletResponse response, SQLParser Parser) throws Exception

  {
    // 实例化ClientInfo类
    ClientInfo Client = new ClientInfo(request);
    StringBuffer Str = new StringBuffer();
    // 获得客户IP Address
    Str.append("Client IP Address:");
    Str.append(Client.getIPAddress());
    Str.append("<BR>");
    // 获得客户Host
    Str.append("Client Host:");
    Str.append(Client.getRemoteHost());
    Str.append("<BR>");
    // 获得客户Method
    Str.append("Method:");
    Str.append(Client.getMethod());
    Str.append("<BR>");
    // 获得客户URI
    Str.append("URI:");
    Str.append(Client.getURI());
    Str.append("<BR>");
    // 获得客户Protocol
    Str.append("Protocol:");
    Str.append(Client.getProtocol());
    Str.append("<BR>");
    // 获得浏览器类型
    Str.append("User-Agent:");
    Str.append(Client.getUserAgent());
    Str.append("<BR>");
    // 获得浏览器类型
    Str.append("Connection:");
    Str.append(Client.getConnection());
    Str.append("<BR>");
    // 获得浏览器可接受的MIME类型
    Str.append("Accept:");
    Str.append(Client.getAccept());
    Str.append("<BR>");
    // 获得浏览器可接受的字符集
    Str.append("Accept-Charset:");
    Str.append(Client.getAcceptCharset());
    Str.append("<BR>");
    // 获得浏览器能够进行解码的数据编码方式
    Str.append("Accept-Encoding:");
    Str.append(Client.getAcceptEncoding());
    Str.append("<BR>");
    // 获得浏览器所希望的语言种类
    Str.append("Accept-Language:");
    Str.append(Client.getAcceptLanguage());
    Str.append("<BR>");
    // 获得浏览器的语言
    Str.append("Language:");
    Str.append(Client.getMainLanguage());
    Str.append("<BR>");

    // 获得浏览器授权信息
    Str.append("Authorization:");
    Str.append(Client.getAuthorization());
    Str.append("<BR>");

    String ClientInfo = Str.toString();
    request.setAttribute("Client", ClientInfo);
    return "/client.jsp";
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ClientInfo

        // must be processed at the same time
        JndiEncInfoBuilder.initJndiReferences(appModule, appInfo);

        for (ClientModule clientModule : appModule.getClientModules()) {
            ApplicationClient applicationClient = clientModule.getApplicationClient();
            ClientInfo clientInfo = new ClientInfo();
            clientInfo.description = applicationClient.getDescription();
            clientInfo.displayName = applicationClient.getDisplayName();
            clientInfo.codebase = clientModule.getJarLocation();
            clientInfo.mainClass = clientModule.getMainClass();
            clientInfo.callbackHandler = applicationClient.getCallbackHandler();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ClientInfo

        // if the module id is the same as the appInfo, then it is a standalone module
        if (infos.size() == 1) {
            InfoObject infoObject = infos.get(0);
            if (infoObject instanceof ClientInfo) {
                ClientInfo clientInfo = (ClientInfo) infoObject;
                if (appInfo.jarPath.equals(clientInfo.codebase)) {
                    // are client modules allowed
                    if (allowedModuleType != null && !allowedModuleType.equals(ModuleType.CAR)) {
                        return null;
                    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ClientInfo

    }

    private void buildClientModules(AppModule appModule, AppInfo appInfo, JndiEncInfoBuilder jndiEncInfoBuilder) throws OpenEJBException {
        for (ClientModule clientModule : appModule.getClientModules()) {
            ApplicationClient applicationClient = clientModule.getApplicationClient();
            ClientInfo clientInfo = new ClientInfo();
            clientInfo.description = applicationClient.getDescription();
            clientInfo.displayName = applicationClient.getDisplayName();
            clientInfo.codebase = clientModule.getJarLocation();
            clientInfo.mainClass = clientModule.getMainClass();
            clientInfo.callbackHandler = applicationClient.getCallbackHandler();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ClientInfo

    }

    private void buildClientModules(AppModule appModule, AppInfo appInfo, JndiEncInfoBuilder jndiEncInfoBuilder) throws OpenEJBException {
        for (ClientModule clientModule : appModule.getClientModules()) {
            ApplicationClient applicationClient = clientModule.getApplicationClient();
            ClientInfo clientInfo = new ClientInfo();
            clientInfo.description = applicationClient.getDescription();
            clientInfo.displayName = applicationClient.getDisplayName();
            clientInfo.path = clientModule.getJarLocation();
            clientInfo.mainClass = clientModule.getMainClass();
            clientInfo.localClients.addAll(clientModule.getLocalClients());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.