com.sun.xml.ws.developer.Serialization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxws-rt Show documentation
Show all versions of jaxws-rt Show documentation
JAX-WS Runtime with module descriptor
/*
* Copyright (c) 1997, 2019 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.developer;
import javax.xml.ws.spi.WebServiceFeatureAnnotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Configures various aspects of serialization like encoding
*
*
* for e.g.:
*
* @WebService
* @Serialization(encoding="Shift_JIS")
* public class HelloImpl {
* ...
* }
*
*
*
* @since JAX-WS RI 2.2.6
* @author Jitendra Kotamraju
* @see com.sun.xml.ws.developer.SerializationFeature
*/
@Retention(RUNTIME)
@Target({TYPE, ElementType.METHOD, ElementType.FIELD})
@Documented
@WebServiceFeatureAnnotation(id = SerializationFeature.ID, bean = SerializationFeature.class)
public @interface Serialization {
/**
* Turns validation on/off for inbound messages
*
* @since JAX-WS RI 2.2.6
*/
String encoding() default "";
}