com.liferay.faces.bridge.context.url
Class BaseURLNonEncodedStringImpl

java.lang.Object
  extended by com.liferay.faces.bridge.context.url.BaseURLNonEncodedStringImpl
All Implemented Interfaces:
javax.portlet.BaseURL
Direct Known Subclasses:
BaseURLDirectStringImpl, BaseURLEncodedStringImpl, BaseURLRelativeStringImpl

public class BaseURLNonEncodedStringImpl
extends Object
implements javax.portlet.BaseURL

This class represents a simple "non-encoded" BaseURL, meaning an implementation that simply wraps a String based URL without providing any encoding. The only methods that are meant to be called is toString() and write(Writer, boolean). All other methods throw an UnsupportedOperationException.

Author:
Neil Griffin

Constructor Summary
BaseURLNonEncodedStringImpl(String urlWithParameters)
           
BaseURLNonEncodedStringImpl(String url, Map<String,String[]> parameterMap)
           
 
Method Summary
 void addProperty(String key, String value)
           
protected  String getMain()
          Returns the main part of the URL, which is everything up until the question mark.
 Map<String,String[]> getParameterMap()
           
protected  String getQuery()
          Returns the query-string part of the URL (without a leading question mark).
 void setParameter(String name, String value)
           
 void setParameter(String name, String[] values)
           
 void setParameters(Map<String,String[]> parameters)
           
 void setProperty(String key, String value)
           
 void setSecure(boolean secure)
           
 String toString()
           
 void write(Writer out)
           
 void write(Writer out, boolean escapeXML)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseURLNonEncodedStringImpl

public BaseURLNonEncodedStringImpl(String urlWithParameters)

BaseURLNonEncodedStringImpl

public BaseURLNonEncodedStringImpl(String url,
                                   Map<String,String[]> parameterMap)
Method Detail

addProperty

public void addProperty(String key,
                        String value)
Specified by:
addProperty in interface javax.portlet.BaseURL

toString

public String toString()
Specified by:
toString in interface javax.portlet.BaseURL
Overrides:
toString in class Object

write

public void write(Writer out)
           throws IOException
Specified by:
write in interface javax.portlet.BaseURL
Throws:
IOException

write

public void write(Writer out,
                  boolean escapeXML)
           throws IOException
Specified by:
write in interface javax.portlet.BaseURL
Throws:
IOException

getMain

protected String getMain()
Returns the main part of the URL, which is everything up until the question mark.


setParameter

public void setParameter(String name,
                         String value)
Specified by:
setParameter in interface javax.portlet.BaseURL

setParameter

public void setParameter(String name,
                         String[] values)
Specified by:
setParameter in interface javax.portlet.BaseURL

getParameterMap

public Map<String,String[]> getParameterMap()
Specified by:
getParameterMap in interface javax.portlet.BaseURL

setParameters

public void setParameters(Map<String,String[]> parameters)
Specified by:
setParameters in interface javax.portlet.BaseURL

setProperty

public void setProperty(String key,
                        String value)
Specified by:
setProperty in interface javax.portlet.BaseURL

getQuery

protected String getQuery()
Returns the query-string part of the URL (without a leading question mark).


setSecure

public void setSecure(boolean secure)
               throws javax.portlet.PortletSecurityException
Specified by:
setSecure in interface javax.portlet.BaseURL
Throws:
javax.portlet.PortletSecurityException


Copyright © 2014 Liferay, Inc.. All Rights Reserved.