public interface AlignmentServiceProfile
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String prefix)
Tells if it accept requests with this prefix
|
void |
close()
Shutdown the Service and undeclare it from any registery
|
void |
init(java.util.Properties p,
AServProtocolManager m)
Creates the Service object and declares it after any
required registry
|
java.lang.String |
process(java.lang.String uri,
java.lang.String prefix,
java.lang.String perf,
java.util.Properties header,
java.util.Properties params)
Process a particular request
|
void init(java.util.Properties p, AServProtocolManager m) throws AServException
p:
- the parameters of the servicem:
- the protocol manager that the service will callAServException
- when something goes wrongboolean accept(java.lang.String prefix)
prefix:
- the prefix of the URI of an incoming queryjava.lang.String process(java.lang.String uri, java.lang.String prefix, java.lang.String perf, java.util.Properties header, java.util.Properties params)
uri:
- the URI of the queryprefix:
- its prefixperf:
- its performative (the action to be processed)header:
- the HTTP headerparams:
- the parameters of the queryvoid close() throws AServException
AServException
- when something goes wrong(C) INRIA & friends, 2003-2020