# Class ContextCaptureInitializer (0.2.13-alpha)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.2.13-alpha (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloud-logging-servlet-initializer/latest/com.google.cloud.logging.servlet.ContextCaptureInitializer)
- [0.2.12-alpha](https://docs.cloud.google.com/java/docs/reference/google-cloud-logging-servlet-initializer/0.2.12-alpha/com.google.cloud.logging.servlet.ContextCaptureInitializer)
- [0.1.16-alpha](https://docs.cloud.google.com/java/docs/reference/google-cloud-logging-servlet-initializer/0.1.16-alpha/com.google.cloud.logging.servlet.ContextCaptureInitializer)

    public class ContextCaptureInitializer implements ServletContainerInitializer

## Inheritance

java.lang.Object \> ContextCaptureInitializer

## Implements

[ServletContainerInitializer](https://docs.oracle.com/javase/8/docs/api/javax/servlet/ServletContainerInitializer.html)

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Constructors

### ContextCaptureInitializer()

    public ContextCaptureInitializer()

## Methods

### onStartup(Set\<Class\<?\>\> c, ServletContext ctx)

    public void onStartup(Set<Class<?>> c, ServletContext ctx)

**Parameters**

|---|---|
| **Name** | **Description** |
| c | `https://docs.oracle.com/javase/8/docs/api/java/util/Set.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html<?>>` |
| ctx | `https://docs.oracle.com/javase/8/docs/api/javax/servlet/ServletContext.html` |

**Exceptions**

|---|---|
| **Type** | **Description** |
| [ServletException](https://docs.oracle.com/javase/8/docs/api/javax/servlet/ServletException.html) |   |