All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.xml.ws.developer.Serialization Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
/*
 * Copyright (c) 1997, 2018 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 ""; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy