View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
4   */
5   
6   package com.hack23.cia.service.api.user;
7   
8   import com.hack23.cia.model.application.dto.common.UserSessionDTO;
9   
10  /***
11   * The Class ExternalUrlResponse.
12   */
13  public class ExternalUrlResponse extends AbstractUserResponse {
14  
15      /*** The Constant serialVersionUID. */
16      private static final long serialVersionUID = 1L;
17  
18      /*** The title. */
19      private final String title;
20  
21      /*** The url. */
22      private final String url;
23  
24      /***
25       * Instantiates a new external url response.
26       *
27       * @param userSessionDTO the user session dto
28       * @param title the title
29       * @param url the url
30       */
31      public ExternalUrlResponse(final UserSessionDTO userSessionDTO,
32              final String title, final String url) {
33         super(userSessionDTO);
34          this.title = title;
35          this.url = url;
36      }
37  
38      /***
39       * Gets the title.
40       *
41       * @return the title
42       */
43      public final String getTitle() {
44          return title;
45      }
46  
47      /***
48       * Gets the url.
49       *
50       * @return the url
51       */
52      public final String getUrl() {
53          return url;
54      }
55  }