public class OSGIAServProfile extends java.lang.Object implements AlignmentServiceProfile, org.osgi.framework.BundleActivator
Modifier and Type | Field and Description |
---|---|
static org.osgi.framework.BundleContext |
ctxt |
private int |
localId |
(package private) static org.slf4j.Logger |
logger |
private AServProtocolManager |
manager |
private java.lang.String |
myId |
private java.lang.String |
serverURL |
Constructor and Description |
---|
OSGIAServProfile() |
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 params,
AServProtocolManager manager)
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 |
start(org.osgi.framework.BundleContext context)
Implements BundleActivator.start().
|
void |
stop(org.osgi.framework.BundleContext context)
Implements BundleActivator.stop().
|
static final org.slf4j.Logger logger
private AServProtocolManager manager
private java.lang.String myId
private java.lang.String serverURL
private int localId
public static org.osgi.framework.BundleContext ctxt
public void init(java.util.Properties params, AServProtocolManager manager) throws AServException
AlignmentServiceProfile
init
in interface AlignmentServiceProfile
AServException
- when something goes wrongpublic boolean accept(java.lang.String prefix)
AlignmentServiceProfile
accept
in interface AlignmentServiceProfile
public java.lang.String process(java.lang.String uri, java.lang.String prefix, java.lang.String perf, java.util.Properties header, java.util.Properties params)
AlignmentServiceProfile
process
in interface AlignmentServiceProfile
public void close()
AlignmentServiceProfile
close
in interface AlignmentServiceProfile
public void start(org.osgi.framework.BundleContext context)
start
in interface org.osgi.framework.BundleActivator
context
- the framework context for the bundle.public void stop(org.osgi.framework.BundleContext context)
stop
in interface org.osgi.framework.BundleActivator
context
- the framework context for the bundle.(C) INRIA & friends, 2003-2020