public interface AutomationServer
The binding registry is synchronized.
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String name,
boolean isChain,
javax.servlet.http.HttpServletRequest req)
Checks if the given operation name is allowed in a REST call.
|
void |
addBinding(RestBinding binding)
Registers a new operation binding.
|
RestBinding[] |
getBindings()
Gets an array of registered bindings.
|
RestBinding |
getChainBinding(String name)
Gets a binding given a chain name.
|
RestBinding |
getOperationBinding(String name)
Gets a binding given an operation.
|
List<Class<? extends javax.ws.rs.ext.MessageBodyReader<?>>> |
getReaders() |
List<Class<? extends javax.ws.rs.ext.MessageBodyWriter<?>>> |
getWriters()
Returns all the registered writers
|
RestBinding |
removeBinding(RestBinding binding)
Removes a binding for the given operation name.
|
RestBinding getOperationBinding(String name)
name
- the operation name.RestBinding getChainBinding(String name)
name
- the chain nameRestBinding[] getBindings()
void addBinding(RestBinding binding)
binding
- the new binding to registerRestBinding removeBinding(RestBinding binding)
binding
- the binding to removeboolean accept(String name, boolean isChain, javax.servlet.http.HttpServletRequest req)
List<Class<? extends javax.ws.rs.ext.MessageBodyWriter<?>>> getWriters()
List<Class<? extends javax.ws.rs.ext.MessageBodyReader<?>>> getReaders()
Copyright © 2017 Nuxeo. All rights reserved.