|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.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.util.Collection |
getAttrbuteNames() Returns the keys of all the attributes. |
java.lang.Object |
getAttribute(java.lang.String key) Return an attribute with the given key. |
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. |
void |
setAttribute(java.lang.String key, java.lang.Object value) |
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 URIMethod 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 Definition
public java.lang.String getScheme()
Definition
http
and https
.getScheme
in interface Definition
URI.getScheme()
public java.lang.String getAuthority()
Definition
localhost:7001
. Note that port is optional. As a result, another legal value would include localhost
.getAuthority
in interface Definition
URI.getAuthority()
public Definition.ContainerType getContainerType()
Definition
Definition.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 Definition
ContainerType}
public java.lang.String getParameter(java.lang.String sName)
Definition
getParameter
in interface Definition
sName
- parameter namepublic java.lang.String[] getParameters(java.lang.String sName)
Definition
getParameters
in interface Definition
sName
- parameter namepublic java.util.Collection getParameterNames()
Definition
getParameterNames
in interface Definition
public boolean sessionEncode()
Definition
sessionEncode
in interface Definition
public Definition.SatelliteContext getSatelliteContext()
getSatelliteContext
in interface Definition
SatelliteContext}
public java.lang.Object getAttribute(java.lang.String key)
Definition
getAttribute
in interface Definition
key
- attribute keypublic java.util.Collection getAttrbuteNames()
Definition
getAttrbuteNames
in interface Definition
public void setAttribute(java.lang.String key, java.lang.Object value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.