|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.fatwire.cs.core.uri.AbstractAssembler
com.fatwire.cs.core.uri.QueryAssembler
com.fatwire.cs.core.uri.SatelliteTokenAssembler
public final class SatelliteTokenAssembler
This class assembles URIs that are destined for Satellite Server's translation. URIs assembled by this assembler will never be read by a human, but they will be parsed and re-assembled by Satellite Server.
This assembler does not make any use of properties set into it, and as a result it is not necessary to set properties into this assembler.
Nested Class Summary | |
---|---|
static class |
SatelliteTokenAssembler.STADefinition This class constructs a special Definition that is designed for use with the SatelliteTokenAssembler. |
Nested classes/interfaces inherited from class com.fatwire.cs.core.uri.AbstractAssembler |
---|
AbstractAssembler.AssemblyContext, AbstractAssembler.DisassemblyContext |
Field Summary | |
---|---|
static java.lang.String |
APP_TYPE_PARAM |
static java.lang.String |
AUTHORITY_PARAM |
static java.lang.String |
CONTAINER_TYPE_PARAM |
static java.lang.String |
FRAGMENT_PARAM |
static java.lang.String |
PREFERRED_ASSEMBLER Parameter for the preferred assembler |
static java.lang.String |
SATELLITE_CONTEXT_PARAM |
static java.lang.String |
SATELLITE_FRAGMENT Value always passed as the fragment into SatelliteTokenAssembler URIs. |
static java.lang.String |
SATELLITE_SCHEME Value always passed as the scheme into SatelliteTokenAssembler URIs |
static java.lang.String |
SATELLITE_TOKEN This string is a token that will appear in every URI assembled by this assembler. |
static java.lang.String |
SCHEME_PARAM |
static java.lang.String |
SESSION_ENCODE_PARAM |
Fields inherited from class com.fatwire.cs.core.uri.AbstractAssembler |
---|
PAGENAME |
Constructor Summary | |
---|---|
SatelliteTokenAssembler() |
Method Summary | |
---|---|
Definition |
disassemble(java.net.URI uri, Definition.ContainerType ct) This method disassembles a URI into its components, constructing a Definition object to provide conveniece accessors to the data encoded in the URI. |
protected AbstractAssembler.AssemblyContext |
getAssemblyContext(Definition def) Returns an assembly context object given the input definition. |
java.lang.String |
getAuthority(AbstractAssembler.AssemblyContext def) Get the authority for this URI |
java.lang.String |
getFragment(AbstractAssembler.AssemblyContext def) Returns the fragment for this URI. |
java.lang.String |
getPath(AbstractAssembler.AssemblyContext def) This method returns the path for the URI given the definition specified. |
java.lang.String |
getScheme(AbstractAssembler.AssemblyContext def) Returns the scheme (protocol) for the assembly context specified. |
Methods inherited from class com.fatwire.cs.core.uri.QueryAssembler |
---|
getAppType, getAuthority, getFragment, getPathForApp, getPathForSatelliteServer, getQuery, getQuery, getSatelliteContext, getScheme, getSessionEncode |
Methods inherited from class com.fatwire.cs.core.uri.AbstractAssembler |
---|
assemble, decode, decode, encode, getDisassemblyContext, getLog, getProperty, parseQueryString, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String SATELLITE_SCHEME
public static java.lang.String SATELLITE_FRAGMENT
public static java.lang.String SATELLITE_TOKEN
public static java.lang.String PREFERRED_ASSEMBLER
public static java.lang.String SCHEME_PARAM
public static java.lang.String AUTHORITY_PARAM
public static java.lang.String CONTAINER_TYPE_PARAM
public static java.lang.String APP_TYPE_PARAM
public static java.lang.String FRAGMENT_PARAM
public static java.lang.String SESSION_ENCODE_PARAM
public static java.lang.String SATELLITE_CONTEXT_PARAM
Constructor Detail |
---|
public SatelliteTokenAssembler()
Method Detail |
---|
protected AbstractAssembler.AssemblyContext getAssemblyContext(Definition def)
AbstractAssembler
getAssemblyContext
in class AbstractAssembler
def
- input definitionAbstractAssembler.AssemblyContext
public java.lang.String getScheme(AbstractAssembler.AssemblyContext def)
AbstractAssembler
getScheme
in class QueryAssembler
def
- Assembly context objectpublic java.lang.String getAuthority(AbstractAssembler.AssemblyContext def)
QueryAssembler
getAuthority
in class QueryAssembler
def
- Assembly context objectpublic java.lang.String getPath(AbstractAssembler.AssemblyContext def)
QueryAssembler
getPath
in class QueryAssembler
def
- Assembly context objectpublic java.lang.String getFragment(AbstractAssembler.AssemblyContext def)
QueryAssembler
getFragment
in class QueryAssembler
def
- Assembly context objectpublic Definition disassemble(java.net.URI uri, Definition.ContainerType ct) throws java.net.URISyntaxException
This method needs to be able to identify a URI passed to it as one of its own or as a foreign URI. If the URI is foreign, then this method will return null. If there is an error in the URI syntax, and this URI is identified as owned by the implementation, then a URISyntaxException may be thrown.
While it is not guaranteed that for a given Definition def and a given Assembler uria, that uri.assemble(def,false|true).equals(uria.disassemble(uria.assemble(def,false|true))), it is required that the arguments of a Definition passed into the assemble method will be identical to the arguments returned when the uri is disassembled.
disassemble
in interface Assembler
disassemble
in class AbstractAssembler
uri
- URI to disassemblect
- the type of the container that this URL is being generated for.java.net.URISyntaxException
- if there is a problem with the URI syntax.SatelliteTokenAssembler.STADefinition
, Definition.ContainerType
|
|||||||||
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.