org.apache.wink.server.utils
Class RegistrationUtils
java.lang.Object
org.apache.wink.server.utils.RegistrationUtils
public class RegistrationUtils
- extends java.lang.Object
Method Summary |
static void |
registerApplication(javax.ws.rs.core.Application application,
javax.servlet.ServletContext servletContext)
Registers resources and providers provided by the Application. |
static void |
registerApplication(javax.ws.rs.core.Application application,
javax.servlet.ServletContext servletContext,
java.lang.String requestProcessorAttribute)
Registers resources and providers provided by the Application. |
static void |
registerClasses(javax.servlet.ServletContext servletContext,
java.lang.Class<?>... classes)
|
static void |
registerClasses(javax.servlet.ServletContext servletContext,
java.lang.String requestProcessorAttribute,
java.lang.Class<?>... classes)
|
static void |
registerInstances(javax.servlet.ServletContext servletContext,
java.lang.Object... instances)
|
static void |
registerInstances(javax.servlet.ServletContext servletContext,
java.lang.String requestProcessorAttribute,
java.lang.Object... instances)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistrationUtils
public RegistrationUtils()
registerApplication
public static void registerApplication(javax.ws.rs.core.Application application,
javax.servlet.ServletContext servletContext)
- Registers resources and providers provided by the Application. The
methods adds new providers and resources and DOES NOT removes the already
registered.
- Parameters:
application
- - application to registerservletContext
- - current servlet context
registerClasses
public static void registerClasses(javax.servlet.ServletContext servletContext,
java.lang.Class<?>... classes)
registerInstances
public static void registerInstances(javax.servlet.ServletContext servletContext,
java.lang.Object... instances)
registerInstances
public static void registerInstances(javax.servlet.ServletContext servletContext,
java.lang.String requestProcessorAttribute,
java.lang.Object... instances)
registerClasses
public static void registerClasses(javax.servlet.ServletContext servletContext,
java.lang.String requestProcessorAttribute,
java.lang.Class<?>... classes)
registerApplication
public static void registerApplication(javax.ws.rs.core.Application application,
javax.servlet.ServletContext servletContext,
java.lang.String requestProcessorAttribute)
- Registers resources and providers provided by the Application. The
methods adds new providers and resources and DOES NOT removes the already
registered.
- Parameters:
application
- - application to registerservletContext
- - current servlet contextrequestProcessorAttribute
- - attribute on which the request
processor is stored. It's useful, when there are multiple rest
servlets in the system and each one has a request processor.
Copyright © 2009 The Apache Software Foundation. All Rights Reserved.