org.chorem.pollen.bean
Class PollUrl

java.lang.Object
  extended by org.chorem.pollen.bean.PollUrl

public class PollUrl
extends Object

Created: 12/04/12

Author:
fdesbois

Method Summary
 String getBaseUrl()
           
 PollUri getPollUri()
           
 String getUrl()
           
static PollUrl newPollUrl(PollUrl pollUrl, String accountId)
          Create a new PollUrl which is a copy of the given pollUrl with an other accountId for PollUri.
static PollUrl newPollUrl(String baseUrl, PollUri pollUri)
          Create a new PollUrl with baseUrl which is the application url for this url, and the pollUri to identify the poll.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newPollUrl

public static PollUrl newPollUrl(String baseUrl,
                                 PollUri pollUri)
Create a new PollUrl with baseUrl which is the application url for this url, and the pollUri to identify the poll.

Parameters:
baseUrl - Base url from the application for this url
pollUri - Uri that identify the poll and the account
Returns:
a new PollUrl

newPollUrl

public static PollUrl newPollUrl(PollUrl pollUrl,
                                 String accountId)
Create a new PollUrl which is a copy of the given pollUrl with an other accountId for PollUri.

Parameters:
pollUrl - PollUrl to copy
accountId - New accountId to use for copy
Returns:
the new PollUrl

getBaseUrl

public String getBaseUrl()

getPollUri

public PollUri getPollUri()

getUrl

public String getUrl()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 CodeLutin. All Rights Reserved.