public class DefaultJaffreServer extends Object implements JaffreServer, JaffreCookieSupport
Modifier and Type | Field and Description |
---|---|
protected EndpointRegistry |
m_epr |
Constructor and Description |
---|
DefaultJaffreServer() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getEndpointInterface(Class<T> p_interface)
Support for local transport.
|
boolean |
isAcceptCookies() |
boolean |
isLogInOnlyExceptions() |
boolean |
isLogInOutExceptions() |
boolean |
isSendCookies() |
JaffreReturnFrame |
process(JaffreCallFrame p_call,
Object p_extParam)
Process a call frame.
|
void |
registerInterface(Class<?> p_interface,
Object p_obj)
Register an endpoint interface.
|
void |
registerInterface(Object p_obj)
Register an endpoint interface.
|
void |
setAcceptCookies(boolean p_bAcceptCookies) |
void |
setLogInOnlyExceptions(boolean p_bLogInOnlyExceptions) |
void |
setLogInOutExceptions(boolean p_bLogInOutExceptions) |
void |
setSendCookies(boolean p_bSendCookies) |
protected EndpointRegistry m_epr
public boolean isAcceptCookies()
isAcceptCookies
in interface JaffreCookieSupport
public void setAcceptCookies(boolean p_bAcceptCookies)
setAcceptCookies
in interface JaffreCookieSupport
public boolean isSendCookies()
isSendCookies
in interface JaffreCookieSupport
public void setSendCookies(boolean p_bSendCookies)
setSendCookies
in interface JaffreCookieSupport
public boolean isLogInOutExceptions()
public void setLogInOutExceptions(boolean p_bLogInOutExceptions)
public boolean isLogInOnlyExceptions()
public void setLogInOnlyExceptions(boolean p_bLogInOnlyExceptions)
public void registerInterface(Object p_obj)
JaffreServer
An implementation normally would choose a suitable interface implemented
by the endpoint and then call JaffreServer.registerInterface(Class, Object)
with the choosen interface and the given endpoint as arguments.
registerInterface
in interface JaffreServer
p_obj
- A service endpoint that implements an interface.JaffreServer.registerInterface(Class, Object).
public void registerInterface(Class<?> p_interface, Object p_obj)
JaffreServer
registerInterface
in interface JaffreServer
p_interface
- The endpoint interface.p_obj
- A service endpoint that implements p_interface
.public JaffreReturnFrame process(JaffreCallFrame p_call, Object p_extParam)
process
in interface JaffreServer
p_call
- The call frame to be processed.p_extParam
- A parameter reserved for implementors that need to pass
additional information to this method. Not used in this implementation.public <T> T getEndpointInterface(Class<T> p_interface)
JaffreServer
getEndpointInterface
in interface JaffreServer
T
- The type of interface requested from this service.p_interface
- The interface class.Copyright © 2009-2013 Alexander Veit. All Rights Reserved.