|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PocURL
The PocURL
is a URL that addresses a piece of content (POC).
Depending on the way the actual URL instance has been achieved, such a URL
might represent the view of a resource or its binary representation. The
binding to the actual resource might happen early (i.e. at URL generation
time) or late (only when the URL is invoked).
Via the writeCopy
and writeDispose
methods the URL
can be written to a stream. writeDispose
should be used wherever
possible as this methods has a smaller performance impact than
writeCopy
. The PocURL
should be disposed if it is no
longer used by calling the dispose()
method. The
writeDispose
however writes the URL to a stream and disposes it
in one single step, so if writeDispose
is called, the object
must not be disposed additionally.
EngineURL
Field Summary |
---|
Fields inherited from interface com.ibm.portal.resolver.data.Addressable |
---|
EMPTY_PARAMETERS |
Method Summary | |
---|---|
java.lang.String |
getDigest()
Returns a string that represents a hash over the request headers that might influence the responses (independent of the request URL). |
java.lang.String |
getMode()
Returns the mode that is currently associated with the resouce |
java.util.Map<java.lang.String,java.lang.String[]> |
getParameters()
Returns a modifiable version of the parameters used to address the object, never null , but potentially the empty map. |
void |
setAddressable(Addressable aAddr)
Associates the URI and parameters of the addressable object |
void |
setDigest(java.lang.String aDigest)
Associates a digest with the POC URL. |
void |
setMode(java.lang.String aMode)
Associates a mode with the URI. |
void |
setProtected(java.lang.Boolean bFlag)
Indicates if the URL points to the private area or to the public area . |
void |
setSecure(java.lang.Boolean bFlag)
Indicates the security setting for this URL. |
void |
setURI(java.net.URI aURI)
Associates a POC URI with the URL object. |
java.io.Writer |
writeCopy(java.io.Writer out,
boolean bEscapeXML)
Streams the state represented by this URL object to a writer. |
java.io.Writer |
writeDispose(java.io.Writer out,
boolean bEscapeXML)
Streams the state represented by this URL object to a writer. |
Methods inherited from interface com.ibm.portal.resolver.accessors.url.ParameterAccessorController |
---|
addParameter, addParameters, removeParameter, setParameter, setParameters |
Methods inherited from interface com.ibm.portal.resolver.accessors.url.ParameterAccessor |
---|
getParameter, getParameter, getParameters, getParameters |
Methods inherited from interface com.ibm.portal.state.DisposableURL |
---|
toString, writeCopy, writeDispose |
Methods inherited from interface com.ibm.portal.URL |
---|
write |
Methods inherited from interface com.ibm.portal.Disposable |
---|
dispose |
Methods inherited from interface com.ibm.portal.resolver.data.Addressable |
---|
getURI |
Method Detail |
---|
java.lang.String getDigest()
getDigest
in interface DigestProvider
null
if the
digest could not be computedjava.lang.String getMode()
null
java.util.Map<java.lang.String,java.lang.String[]> getParameters()
null
, but potentially the empty map. The key
is of type String, the values of type String[]. Clients may modify this
map to associate parameters with the PocURL
getParameters
in interface Addressable
getParameters
in interface ParameterAccessor
getParameters
in interface ParameterAccessorController
void setAddressable(Addressable aAddr) throws StateException, java.net.URISyntaxException
aAddr
- the combination of uri and parameter map
StateException
java.net.URISyntaxException
void setDigest(java.lang.String aDigest)
null
as the digest to
create a POC URL without a digest.
aDigest
- the new digest or null
to create a URL without a
digest.void setMode(java.lang.String aMode)
VIEW
or
DOWNLOAD
.
aMode
- mode identifier, may be null
to represent the
default mode.void setProtected(java.lang.Boolean bFlag)
bFlag
- true, if the URL should point to the private areavoid setSecure(java.lang.Boolean bFlag)
bFlag
- true, if portlet requests to have a secure connection between
its portlet window and the client; false, if the portlet does
not require a secure connection.void setURI(java.net.URI aURI) throws StateException
aURI
- URI that identifies the target resource, not null
StateException
- - if the association could not be performedjava.io.Writer writeCopy(java.io.Writer out, boolean bEscapeXML) throws java.io.IOException, OutputMediatorException, PostProcessorException, DocumentModelException
writeDispose(Writer, boolean)
method should be
used instead.
out
- Destination stream that receives the character representation
of the URL (must not be null)
java.io.IOException
- - error on the underlying streams
OutputMediatorException
- - error during the serialization operation
DocumentModelException
- - if an optional temporary copy of the state could not be
created
PostProcessorException
- - if an optional post processing step failedjava.io.Writer writeDispose(java.io.Writer out, boolean bEscapeXML) throws java.io.IOException, OutputMediatorException, PostProcessorException
out
- Destination stream that receives the character representation
of the URL (must not be null)
java.io.IOException
- Error on the underlying streams
OutputMediatorException
- - error during the serialization operation
PostProcessorException
- - if an optional post processing step failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |