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.hayabusa.html;
017    
018    
019    /**
020     * URLã«ãƒˆã?クンを付加ã™ã‚‹ãŸã‚ã®ã‚¤ãƒ³ã‚¿ãƒ•ェイスã§ã?
021     * å?¨®ã®ãƒˆã?クンをサãƒã?トã™ã‚‹ã«ã¯ã€CreateToken インターフェースã‚?implements ã—ãŸ
022     * クラスを作æ?ã—ã¦ãã ã•ã„ã€?
023     * CreateToken 自体ã?linkTagクラスよりアクセスã•れã¾ã™ã?
024     *
025     *
026     * @og.group ç”»é¢è¡¨ç¤º
027     * @og.rev 5.8.2.1 (2014/12/13) æ–°è¦ä½œæ?
028     *
029     * @version  4.0
030     * @author       Kazuhiko Hasegawa
031     * @since    JDK5.0,
032     */
033    public interface CreateToken {
034    
035            
036            /**
037             * トã?クン付ã?URLã‚’è¿”ã—ã¾ã™ã?
038             *
039             * @param       inURL   トã?クンを付加ã™ã‚‹URL
040             * @param       time    有効期é™(millis??
041             * @param       user    ユーザ
042             * 
043             * @return      トã?クン付URL
044             */
045            String generateURL( String inURL, long time, String user ) ;
046            
047            /**
048             * トã?クン付ã?URLã‚’è¿”ã—ã¾ã™ã?
049             *
050             * @param       inURL トã?クンを付加ã™ã‚‹URL
051             * @param       time 有効期é™(millis??
052             * @param       param パラメータ
053             */
054            String generateURL( String inURL, long time, String user, String[] param ) ;
055            
056            /**
057             * Aã‚¿ã‚°ã®æ–?­—å?ã‚’è§£æžã—ã¦ã€ãƒˆãƒ¼ã‚¯ãƒ³ã‚’付加ã—ã¾ã™ã?
058             *
059             * @param   tag Aã‚¿ã‚°æ–?­—å?
060             * @param   time 有効期é™(millis??
061             *
062             * @return  トã?クンãŒä»˜åŠ ã•れãŸAã‚¿ã‚°æ–?­—å?
063             */
064            String embedToken( final String tag, final long time, final String user  );
065            
066            /**
067             * Aã‚¿ã‚°ã®æ–?­—å?ã‚’è§£æžã—ã¦ã€ãƒˆãƒ¼ã‚¯ãƒ³ã‚’付加ã—ã¾ã™ã?
068             *
069             * @param   tag Aã‚¿ã‚°æ–?­—å?
070             * @param   time 有効期é™(millis??
071             *
072             * @return  トã?クンãŒä»˜åŠ ã•れãŸAã‚¿ã‚°æ–?­—å?
073             */
074            String embedToken( final String tag, final long time, final String user, final String[] param  );
075    
076    
077    }