001 /* 002 * Copyright (c) 2009 The openGion Project. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 013 * either express or implied. See the License for the specific language 014 * governing permissions and limitations under the License. 015 */ 016 package org.opengion.plugin.token; 017 018 import org.opengion.fukurou.util.XHTMLTag; 019 import org.opengion.hayabusa.common.HybsSystem; 020 import org.opengion.hayabusa.html.AbstractCreateToken; 021 022 /** 023 * サンプルとして、エンジンのURLCheckの機?を?ラグインとして作?するパターンを作?します? 024 * ※URLCheck機?を使??合?、このプラグインではなくlinkタグの機?を使ってください? 025 * 026 * @og.group 画面表示 027 * @og.rev 5.8.2.1 (2014/12/13) 028 * 029 * @version 5.0 030 * @author Takahashi Masakazu 031 * @since JDK5.0, 032 */ 033 public class CreateToken_URLCheck extends AbstractCreateToken { 034 //* こ?プログラ??VERSION??を設定します? {@value} */ 035 private static final String VERSION = "5.8.2.1 (2014/12/13)" ; 036 037 /** 038 * ?ォルトコンストラクター 039 * 040 * @og.rev 4.0.0.0 (2005/01/31) type ? 041 */ 042 public CreateToken_URLCheck() { 043 } 044 045 /** 046 * NATIVEの型?識別コードを返します? 047 * 048 * 049 * @return NATIVEの型?識別コー?DBType で規? 050 * @see org.opengion.fukurou.model.NativeType 051 */ 052 @Override 053 public String generateURL( final String inURL, final long time, final String user, final String[] param ){ 054 return XHTMLTag.addURLCheckKey( inURL, HybsSystem.URL_CHECK_KEY, null, time ); 055 } 056 057 058 }