|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhhannover.inform.trust.ifmapj.channel.SsrcImpl
public class SsrcImpl
Field Summary | |
---|---|
static String |
VERIFY_PEER_CERT_PROPERTY
|
static String |
VERIFY_PEER_HOST_PROPERTY
|
Constructor Summary | |
---|---|
SsrcImpl(String url,
KeyManager[] kms,
TrustManager[] tms)
Certificate-based constructor. |
|
SsrcImpl(String url,
String user,
String pass,
TrustManager[] tms)
Basic-Auth constructor. |
Method Summary | |
---|---|
void |
closeTcpConnection()
Closes the underlying TCP connection. |
void |
endSession()
Send endSession request to MAPS |
Result |
genericRequest(Request req)
Generic Request Interface |
Result |
genericRequestWithSessionId(Request req)
|
ARC |
getArc()
Open a ARC corresponding to this SSRC instance |
Integer |
getMaxPollResSize()
|
String |
getPassword()
|
String |
getPublisherId()
|
String |
getSessionId()
|
String |
getUrl()
|
String |
getUser()
|
boolean |
isBasicAuth()
|
void |
newSession()
Send a newSession request to MAPS |
void |
newSession(Integer maxPollResSize)
Send a newSession request to MAPS with the given parameter |
void |
publish(PublishRequest pr)
Send a publish request to MAPS. |
void |
purgePublisher()
Send purgePublisher request to MAPS in order to purge the MAPCs metadata |
void |
purgePublisher(String publisherId)
Send purgePublisher request with the given parameter to MAPS |
void |
renewSession()
Send renewSession request to MAPS |
SearchResult |
search(SearchRequest sr)
Send a search request to the MAPS |
void |
setGzip(boolean useGzip)
Specifies whether GZIP compression should be used. |
void |
setMaxPollResSize(Integer mprs)
Set the max-poll-result-size for this channel. |
void |
setPublisherId(String publisherId)
Set the ifmap-publisher-id for this channel. |
void |
setSessionId(String sessionId)
Set the session-id to be used for this channel. |
void |
subscribe(SubscribeRequest sr)
Send a subscribe request to the MAPS. |
boolean |
usesGzip()
Indicates whether GZIP compression is used by this channel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.fhhannover.inform.trust.ifmapj.channel.IfmapChannel |
---|
closeTcpConnection, genericRequest, genericRequestWithSessionId, setGzip, usesGzip |
Field Detail |
---|
public static final String VERIFY_PEER_CERT_PROPERTY
public static final String VERIFY_PEER_HOST_PROPERTY
Constructor Detail |
---|
public SsrcImpl(String url, String user, String pass, TrustManager[] tms) throws InitializationException
url
- user
- pass
- tms
-
InitializationException
public SsrcImpl(String url, KeyManager[] kms, TrustManager[] tms) throws InitializationException
url
- kms
- tms
-
InitializationException
Method Detail |
---|
public void newSession(Integer maxPollResSize) throws IfmapErrorResult, IfmapException
SSRC
newSession
in interface SSRC
maxPollResSize
- the maximum size of poll results that can be
processed by the MAPC given in bytes
IfmapErrorResult
IfmapException
public void newSession() throws IfmapErrorResult, IfmapException
SSRC
newSession
in interface SSRC
IfmapErrorResult
IfmapException
public void endSession() throws IfmapErrorResult, IfmapException
SSRC
endSession
in interface SSRC
IfmapErrorResult
IfmapException
public void renewSession() throws IfmapErrorResult, IfmapException
SSRC
renewSession
in interface SSRC
IfmapErrorResult
IfmapException
public void purgePublisher() throws IfmapErrorResult, IfmapException
SSRC
purgePublisher
in interface SSRC
IfmapErrorResult
IfmapException
public void purgePublisher(String publisherId) throws IfmapErrorResult, IfmapException
SSRC
purgePublisher
in interface SSRC
publisherId
- the publisher-id of the MAPC whose metadata should be purged
IfmapErrorResult
IfmapException
public void publish(PublishRequest pr) throws IfmapErrorResult, IfmapException
SSRC
publish
in interface SSRC
pr
- the publish request that is sent
IfmapErrorResult
IfmapException
public void subscribe(SubscribeRequest sr) throws IfmapErrorResult, IfmapException
SSRC
subscribe
in interface SSRC
sr
- the subscribe request
IfmapErrorResult
IfmapException
public SearchResult search(SearchRequest sr) throws IfmapErrorResult, IfmapException
SSRC
search
in interface SSRC
sr
- the search request
IfmapErrorResult
IfmapException
public ARC getArc() throws InitializationException
SSRC
ARC
corresponding to this SSRC
instance
getArc
in interface SSRC
ARC
InitializationException
public String getSessionId()
getSessionId
in interface IfmapChannel
SSRC.newSession()
or IfmapChannel.setSessionId(String)
,
or null if none of these calls was made.public String getPublisherId()
getPublisherId
in interface IfmapChannel
SSRC.newSession()
or IfmapChannel.setPublisherId(String)
,
or null if none of these calls was made.public Integer getMaxPollResSize()
getMaxPollResSize
in interface IfmapChannel
SSRC.newSession()
or IfmapChannel.setMaxPollResSize(Integer)
,
or null if none of these calls was made.public void setSessionId(String sessionId)
IfmapChannel
ARC
will change the SSRC
object attached to the
ARC
. Calling it on an SSRC
will also change the attached
ARC
objects for the SSRC
.
setSessionId
in interface IfmapChannel
public void setPublisherId(String publisherId)
IfmapChannel
ARC
will change the SSRC
object attached to the
ARC
. Calling it on an SSRC
will also change the attached
ARC
objects for the SSRC
.
This call will only result in having IfmapChannel.getPublisherId()
return
the set value. Requests won't be influenced.
setPublisherId
in interface IfmapChannel
public void setMaxPollResSize(Integer mprs)
IfmapChannel
ARC
will change the SSRC
object attached to the
ARC
. Calling it on an SSRC
will also change the attached
ARC
objects for the SSRC
.
This call will only result in having IfmapChannel.getMaxPollResSize()
return
the set value. Requests won't be influenced.
setMaxPollResSize
in interface IfmapChannel
public final Result genericRequestWithSessionId(Request req) throws IfmapErrorResult, IfmapException
genericRequestWithSessionId
in interface IfmapChannel
IfmapErrorResult
IfmapException
public final Result genericRequest(Request req) throws IfmapErrorResult, IfmapException
IfmapChannel
genericRequest
in interface IfmapChannel
IfmapErrorResult
IfmapException
public String getUrl()
public String getUser()
public String getPassword()
public void setGzip(boolean useGzip)
IfmapChannel
setGzip
in interface IfmapChannel
useGzip
- true if GZIP should be usedpublic boolean usesGzip()
IfmapChannel
usesGzip
in interface IfmapChannel
public boolean isBasicAuth()
public void closeTcpConnection() throws CommunicationException
IfmapChannel
closeTcpConnection
in interface IfmapChannel
CommunicationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |