|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fatwire.cs.core.uri.Simple
public class Simple
Simple implementation of the Definition interface. No bells or whistles, it's simply
a value class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.fatwire.cs.core.uri.Definition |
|---|
Definition.AppType, Definition.ContainerType, Definition.SatelliteContext |
| Field Summary |
|---|
| Fields inherited from interface com.fatwire.cs.core.uri.Definition |
|---|
LOG_NAME |
| Constructor Summary | |
|---|---|
Simple(boolean enc,
Definition.SatelliteContext context,
Definition.ContainerType ct,
java.lang.String scheme,
java.lang.String authority,
Definition.AppType at,
java.lang.String frag)
Simple Definition |
|
| Method Summary | |
|---|---|
Definition.AppType |
getAppType()
Returns the app type for which this URI is to be generated. |
java.lang.String |
getAuthority()
Returns the authority for this URI. |
Definition.ContainerType |
getContainerType()
Returns the container type for which this URI is to be generated. |
java.lang.String |
getFragment()
Returns a fragment identifier for this URI. |
java.lang.String |
getParameter(java.lang.String sName)
Return a single parameter with the given name. |
java.util.Collection |
getParameterNames()
Returns the names of all the parameters. |
java.lang.String[] |
getParameters(java.lang.String sName)
Returns an array of parameters with the given name. |
Definition.SatelliteContext |
getSatelliteContext()
Returns an object describing whether the URI should be forcibly set to render a Satellite Server URL or a Content Server URL. |
java.lang.String |
getScheme()
Returns the scheme for this URI. |
boolean |
sessionEncode()
Returns true if this URI should be session-encoded by the container. |
java.lang.String[] |
setQueryStringParameter(java.lang.String name,
java.lang.String value)
Adds a value to the list of parameters for this Definition. |
java.lang.String[] |
setQueryStringParameter(java.lang.String name,
java.lang.String[] value)
Sets the query string parameter for the name specified. |
java.util.Map |
setQueryStringParameters(java.util.Map args)
Sets all of the query string parameters for this Definition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Simple(boolean enc,
Definition.SatelliteContext context,
Definition.ContainerType ct,
java.lang.String scheme,
java.lang.String authority,
Definition.AppType at,
java.lang.String frag)
enc - True to session-encode the URI, false to not session-encode the URIcontext - SATELLITE_SERVER to force a SS URL, CONTENT_SERVER to force a CS URL,
or null to choose dynamically.ct - the container type generating the URI.scheme - the scheme for this uri, like http or https. Null is ok.authority - the authority (host:port or host) for this URI. Null is ok.at - app type for the URIfrag - fragment for the URI| Method Detail |
|---|
public java.lang.String[] setQueryStringParameter(java.lang.String name,
java.lang.String value)
name - name of the parametervalue - value of the parameter. If the value is already
set, an additional value is specified.
Simple.setQueryStringParameter(String, String[])
public java.lang.String[] setQueryStringParameter(java.lang.String name,
java.lang.String[] value)
name - name of the parametervalue - value of the parameter. If the value is already
set, this replaces all other values for this parameter name.
Simple.setQueryStringParameter(String, String)public java.util.Map setQueryStringParameters(java.util.Map args)
args - Map of String/String[] pairs that contains all of the
parameters for this map.
java.lang.IllegalArgumentException - if the map is not of the correct form.public Definition.AppType getAppType()
Definition
getAppType in interface Definition@link{AppType}public java.lang.String getFragment()
Definition
getFragment in interface Definitionpublic java.lang.String getScheme()
Definitionhttp
and https.
getScheme in interface DefinitionURI.getScheme()public java.lang.String getAuthority()
Definitionlocalhost:7001. Note
that port is optional. As a result, another legal value would include
localhost.
getAuthority in interface DefinitionURI.getAuthority()public Definition.ContainerType getContainerType()
DefinitionDefinition.ContainerType.DEFAULT which allows the
current container to be used, however when switching container types
is important, this method should return a different value. An example
might be a popup window in a portlet.
getContainerType in interface DefinitionContainerType}public java.lang.String getParameter(java.lang.String sName)
Definition
getParameter in interface DefinitionsName - parameter name
public java.lang.String[] getParameters(java.lang.String sName)
Definition
getParameters in interface DefinitionsName - parameter name
public java.util.Collection getParameterNames()
Definition
getParameterNames in interface Definitionpublic boolean sessionEncode()
Definition
sessionEncode in interface Definitionpublic Definition.SatelliteContext getSatelliteContext()
getSatelliteContext in interface DefinitionSatelliteContext}
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||