public abstract class ResourceProvider extends BaseProvider<ResourceProfile>
Constructor and Description |
---|
ResourceProvider() |
Modifier and Type | Method and Description |
---|---|
void |
abort(String sessionId)
Aborts the specified session corresponding to this resouce.
|
void |
abortAll()
Aborts all sessions corresponding to this resouce.
|
abstract ResourceMirror |
create(String sessionId,
ParameterList arguments)
Provides a new
ResourceMirror . |
ResourceManipulator |
createManipulator(ParameterList arguments)
Provides a new
ResourceManipulator . |
configure
public abstract ResourceMirror create(String sessionId, ParameterList arguments) throws IOException
ResourceMirror
.sessionId
- the current session IDarguments
- arguments (key and value pairs)ResourceMirror
IOException
- if failed to create the specified ResourceMirror
public void abort(String sessionId) throws IOException
sessionId
- the target session IDIOException
- if failed to abort the resourcepublic void abortAll() throws IOException
IOException
- if failed to abort the resourcepublic ResourceManipulator createManipulator(ParameterList arguments) throws IOException
ResourceManipulator
.arguments
- arguments (key and value pairs)ResourceManipulator
IOException
- if failed to create a ResourceManipulator
,
or this resource does not support manipulationCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.