mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 22:12:05 +01:00
Fix typo: s/interna_server_error/internal_server_error/
This commit is contained in:
parent
7341421ca9
commit
67722aea93
3 changed files with 7 additions and 7 deletions
|
@ -29,7 +29,7 @@ import java.util.Map;
|
||||||
*
|
*
|
||||||
* <table border=1>
|
* <table border=1>
|
||||||
* <hr><td><b>Code</b></td><td><b>XMPP Error</b></td><td><b>Type</b></td></hr>
|
* <hr><td><b>Code</b></td><td><b>XMPP Error</b></td><td><b>Type</b></td></hr>
|
||||||
* <tr><td>500</td><td>interna-server-error</td><td>WAIT</td></tr>
|
* <tr><td>500</td><td>internal-server-error</td><td>WAIT</td></tr>
|
||||||
* <tr><td>403</td><td>forbidden</td><td>AUTH</td></tr>
|
* <tr><td>403</td><td>forbidden</td><td>AUTH</td></tr>
|
||||||
* <tr><td>400</td<td>bad-request</td><td>MODIFY</td>></tr>
|
* <tr><td>400</td<td>bad-request</td><td>MODIFY</td>></tr>
|
||||||
* <tr><td>404</td><td>item-not-found</td><td>CANCEL</td></tr>
|
* <tr><td>404</td><td>item-not-found</td><td>CANCEL</td></tr>
|
||||||
|
@ -313,7 +313,7 @@ public class XMPPError {
|
||||||
*/
|
*/
|
||||||
public static class Condition {
|
public static class Condition {
|
||||||
|
|
||||||
public static final Condition interna_server_error = new Condition("internal-server-error");
|
public static final Condition internal_server_error = new Condition("internal-server-error");
|
||||||
public static final Condition forbidden = new Condition("forbidden");
|
public static final Condition forbidden = new Condition("forbidden");
|
||||||
public static final Condition bad_request = new Condition("bad-request");
|
public static final Condition bad_request = new Condition("bad-request");
|
||||||
public static final Condition conflict = new Condition("conflict");
|
public static final Condition conflict = new Condition("conflict");
|
||||||
|
@ -368,8 +368,8 @@ public class XMPPError {
|
||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
instances.put(Condition.interna_server_error, new ErrorSpecification(
|
instances.put(Condition.internal_server_error, new ErrorSpecification(
|
||||||
Condition.interna_server_error, Type.WAIT, 500));
|
Condition.internal_server_error, Type.WAIT, 500));
|
||||||
instances.put(Condition.forbidden, new ErrorSpecification(Condition.forbidden,
|
instances.put(Condition.forbidden, new ErrorSpecification(Condition.forbidden,
|
||||||
Type.AUTH, 403));
|
Type.AUTH, 403));
|
||||||
instances.put(Condition.bad_request, new XMPPError.ErrorSpecification(
|
instances.put(Condition.bad_request, new XMPPError.ErrorSpecification(
|
||||||
|
|
|
@ -636,11 +636,11 @@ public class AdHocCommandManager extends Manager {
|
||||||
}
|
}
|
||||||
catch (InstantiationException e) {
|
catch (InstantiationException e) {
|
||||||
throw new XMPPException(new XMPPError(
|
throw new XMPPException(new XMPPError(
|
||||||
XMPPError.Condition.interna_server_error));
|
XMPPError.Condition.internal_server_error));
|
||||||
}
|
}
|
||||||
catch (IllegalAccessException e) {
|
catch (IllegalAccessException e) {
|
||||||
throw new XMPPException(new XMPPError(
|
throw new XMPPException(new XMPPError(
|
||||||
XMPPError.Condition.interna_server_error));
|
XMPPError.Condition.internal_server_error));
|
||||||
}
|
}
|
||||||
return command;
|
return command;
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,7 @@ public class Socks5ClientForInitiatorTest {
|
||||||
public void shouldFailIfActivateSocks5ProxyFails() throws Exception {
|
public void shouldFailIfActivateSocks5ProxyFails() throws Exception {
|
||||||
|
|
||||||
// build error response as reply to the stream activation
|
// build error response as reply to the stream activation
|
||||||
XMPPError xmppError = new XMPPError(XMPPError.Condition.interna_server_error);
|
XMPPError xmppError = new XMPPError(XMPPError.Condition.internal_server_error);
|
||||||
IQ error = new IQ() {
|
IQ error = new IQ() {
|
||||||
|
|
||||||
public String getChildElementXML() {
|
public String getChildElementXML() {
|
||||||
|
|
Loading…
Reference in a new issue